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
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
Most helpful comment
use
export LD_LIBRARY_PATH=/usr/local/lib
, and then try to run new libimobiledevice in /usr/local/bin