Libimobiledevice: Cannot open shared library libmobiledevice.so.4

Created on 3 Nov 2013  ·  6Comments  ·  Source: libimobiledevice/libimobiledevice

hello,
i'm using linux mint and tried to install new libmobiledevice

installation was without errors, but i can't use anything:
"error while loading shared libraries: libmobiledevice.so.4: cannot open shared object file: No such file or directory"

Where i should look for it?

i checked /usr/local/lib - and there i can see libmobiledevice.so.4 and libmobiledevice.so.4.0.1

installation was in /usr/local

question

Most helpful comment

use export LD_LIBRARY_PATH=/usr/local/lib, and then try to run new libimobiledevice in /usr/local/bin

All 6 comments

use export LD_LIBRARY_PATH=/usr/local/lib, and then try to run new libimobiledevice in /usr/local/bin

You could try to run ldconfig as a root:

# ldconfig -v |& grep mobile

Edit your .bashrc/.bash_profile file for root & local user and add the following lines :-
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
export PATH=$PATH:/usr/local/lib/

This is what I understand to be the correct way to add the /usr/local/lib path to LD_LIBRARY_PATH permanantly:

echo /usr/local/lib > /etc/ld.so.conf.d/libimobiledevice-libs.conf && ldconfig

Assuming it works now.

This command worked for me, thank you
export LD_LIBRARY_PATH=/usr/local/lib

Was this page helpful?
0 / 5 - 0 ratings