You are not logged in.

#1 2016-03-06 16:15:08

tomaz
Member
Registered: 2016-03-05
Posts: 6

Megasync error

I tried to install megasync client but I noticed that PKGBUILD file is outdated so I changed it to this:

# Maintainer: Alfonso Saavedra "Son Link" <sonlink.dourden@gmail.com>
pkgname=megasync
pkgver=2.7.2
pkgrel=2
pkgdesc="Sync your files to your Mega account. Official app"
arch=('i686' 'x86_64')
url="https://mega.nz/#sync"
license=('custom:The Clarified Artistic License')
conflicts=('megatools')
depends=('openssl' 'c-ares' 'libgcrypt' 'crypto++' 'qt4' 'libpng' 'qtchooser' 'sqlite')
optdepends=('sni-qt: fix systray issue on KDE and LXQt')
source_i686=("https://mega.nz/linux/MEGAsync/Debian_8.0/i386/${pkgname}_${pkgver}_i386.deb")
source_x86_64=("https://mega.nz/linux/MEGAsync/Debian_8.0/amd64/${pkgname}_${pkgver}_amd64.deb")
md5sums_i686=('ebb32a34a0320a26461f43f06c4b511d')
md5sums_x86_64=('1901fe664ed6434f6988fea328952f03')
install="${pkgname}.install"
package (){
	cd "${srcdir}"
	pwd
	tar -xvf data.tar.xz -C ${pkgdir}
	rm -r ${pkgdir}/usr/share/doc
}

Then I was able to successfully install it but when I tried to run it I got the following error:

megasync: error while loading shared libraries: libcrypto++.so.9: cannot open shared object file: No such file or directory

So after some research I tried to run the following command:

ln -s /usr/lib/libcryptopp.so /usr/lib/libcrypto++.so.9

Now I get this error:

megasync: /usr/lib/libcrypto.so.1.0.0: no version information available (required by megasync)
megasync: /usr/lib/libssl.so.1.0.0: no version information available (required by megasync)
megasync: /usr/lib/libssl.so.1.0.0: no version information available (required by megasync)
megasync: symbol lookup error: megasync: undefined symbol: _ZN8CryptoPP15DEFAULT_CHANNELE

Does anyone know how can I fix this problem?

Offline

#2 2016-03-06 17:07:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: Megasync error

symlinking libraries is always a recipe for disaster.  Just don't do it.  Ever.

The problem is simple: you are installing a precompiled binary and you do not have the libraries it was built against.  The solution is trickier: if source code is available rebuild the binary, otherwise look for a newer version of the library, or as a last resort, build an older version of the library needed.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2016-03-06 18:35:47

tomaz
Member
Registered: 2016-03-05
Posts: 6

Re: Megasync error

Trilby wrote:

symlinking libraries is always a recipe for disaster.  Just don't do it.  Ever.

Thank you for this advice.

Trilby wrote:

The problem is simple: you are installing a precompiled binary and you do not have the libraries it was built against.  The solution is trickier: if source code is available rebuild the binary, otherwise look for a newer version of the library, or as a last resort, build an older version of the library needed.

I tried to first downgrade package crypto++ but I still got that error with missing file.
Then I visited their website and found source code section but under MEGAsync says Coming Soon...

Offline

#4 2016-03-07 05:20:08

metak
Member
Registered: 2009-09-27
Posts: 198

Re: Megasync error

tomaz wrote:

Then I visited their website and found source code section but under MEGAsync says Coming Soon...

Source code is available in these source files if I'm not mistaken?
https://mega.nz/linux/MEGAsync/Debian_8 … rig.tar.gz
https://mega.nz/linux/MEGAsync/openSUSE … .1.src.rpm

Offline

#5 2016-03-07 08:17:06

tomaz
Member
Registered: 2016-03-05
Posts: 6

Re: Megasync error

metak wrote:
tomaz wrote:

Then I visited their website and found source code section but under MEGAsync says Coming Soon...

Source code is available in these source files if I'm not mistaken?
https://mega.nz/linux/MEGAsync/Debian_8 … rig.tar.gz
https://mega.nz/linux/MEGAsync/openSUSE … .1.src.rpm

Appearently I overlooked this. I tried to build it but also got an error regarding crypto++:

configure: error: cryptopp/cryptlib.h header not found or not usable

Offline

#6 2016-03-07 11:43:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: Megasync error

So you need to install the dependencies - the pacman man page will tell you how to figure out what the relevant package is.  Although that doesn't make much sense as the file you allegedly symlinked to previously is in the same package as the header file you need.

I just confirmed this builds fine here.  It should be pretty trivial to put together a PKGBUILD.

EDIT: oops - there already is one in the OP - sorry, haven't had the coffee yet.  Just update the source and add a build function.  It seems you'll need to descend into "MEGASync/mega" then run autogen.sh before the normal configure and make.  Don't try to use the "configure" script in the top-level source folder, I don't know what it is, but it's not useful.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2016-03-07 14:20:40

tomaz
Member
Registered: 2016-03-05
Posts: 6

Re: Megasync error

Trilby wrote:

So you need to install the dependencies - the pacman man page will tell you how to figure out what the relevant package is.  Although that doesn't make much sense as the file you allegedly symlinked to previously is in the same package as the header file you need.

I just confirmed this builds fine here.  It should be pretty trivial to put together a PKGBUILD.

EDIT: oops - there already is one in the OP - sorry, haven't had the coffee yet.  Just update the source and add a build function.  It seems you'll need to descend into "MEGASync/mega" then run autogen.sh before the normal configure and make.  Don't try to use the "configure" script in the top-level source folder, I don't know what it is, but it's not useful.

I was keep compiling the Debian version. Anyway, maintainer was able to fix it.
It's working now. Thank you.

Offline

#8 2016-03-07 17:58:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: Megasync error

I don't know if I'd call that a fix.  They replaced one now-broken short-term-bandaid with a new soon-to-be-broken short-term bandaid.  The source is available, and it is quick to compile, so building properly from source would be the right solution.

At very least this package should have a -bin on the end if they are not going to do it properly.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2016-03-08 00:04:46

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: Megasync error

metak wrote:
tomaz wrote:

Then I visited their website and found source code section but under MEGAsync says Coming Soon...

Source code is available in these source files if I'm not mistaken?
https://mega.nz/linux/MEGAsync/Debian_8 … rig.tar.gz
https://mega.nz/linux/MEGAsync/openSUSE … .1.src.rpm

I think that's the SDK rather than the client.  When you build it you get megacli, megafuse and megasimplesync.  The desktop client is just megasync.

Offline

Board footer

Powered by FluxBB