meganz / MEGAcmd

Command Line Interactive and Scriptable Application to access MEGA
Other
1.93k stars 406 forks source link

error while loading shared libraries: libmega.so #109

Open art321 opened 5 years ago

art321 commented 5 years ago

Hello. I'm trying to install on Ubuntu Server 16.04 After building have this error:

~/mega/MEGAcmd# mega-login 
[Initiating server in background. Log: /root/.megaCmd/megacmdserver.log]
<program name unknown>: error while loading shared libraries: libmega.so.30401: cannot open shared object file: No such file or directory
Unable to connect to service: error=2
Please ensure mega-cmd-server is running

How can i fix it? Thanks.

polmr commented 5 years ago

What steps did you follow for installing? Is seems libmega.so.30401 is not in your LD_LIBRARY_PATH. In any case, you can download and install MEGAcmd package directly from https://mega.nz/cmd . With that you won't have such issues with linkage.

Jonathanyyf commented 5 years ago

I had the same issue long time ago. Weirdly, last time I reinstalled my OS the error was not here. I don't really remember what I did... But try with ldconfig sudo ldconfig -v | grep mega

Wurzeltroll commented 5 years ago

sudo ldconfig after sudo make install did the job for me.

ColvenGroup commented 4 years ago

In my case I got this error in Debian 9, just run ldconfig and fixed

ksga commented 4 years ago

Armbian (Debian 10.3) and sudo ldconfig was needed. Followed the instructions in readme step by step, so maybe it should be added as a step?

karlbrown87 commented 4 years ago

Thanks, ldconfig worked for me !!

brandonsturgeon commented 3 years ago

ldconfig also fixed my problem, installing as a non-root user but doing sudo make install and then sudo ldconfig.

mendoncart commented 7 months ago

For me, installing the libfreeimage3 library, solved the problem

apt-get update
apt-get install libfreeimage3
ldconfig