Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while loading shared libraries: libmega.so #109

Open
art321 opened this issue Oct 14, 2018 · 8 comments
Open

error while loading shared libraries: libmega.so #109

art321 opened this issue Oct 14, 2018 · 8 comments

Comments

@art321
Copy link

art321 commented Oct 14, 2018

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
Copy link
Collaborator

polmr commented Oct 15, 2018

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
Copy link

Jonathanyyf commented Oct 19, 2018

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
Copy link

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

@ColvenGroup
Copy link

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

@ksga
Copy link

ksga commented Mar 5, 2020

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
Copy link

Thanks, ldconfig worked for me !!

@brandonsturgeon
Copy link

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

@mendoncart
Copy link

For me, installing the libfreeimage3 library, solved the problem

apt-get update
apt-get install libfreeimage3
ldconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants