[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shared library exists but claimed not found



On 11/4/06, Aaron M. Stromas <ams@izoard.com> wrote:
On several occasions I had this problem when an application fails to
start with "error while loading shared libraries: libxxxxxxx.so: cannot
open shared object file: No such file or directory", yet the library is
there and I have update the cache using ldconfig.

For example, I'm trying to get Skype running on AMD64:

sella:#/home/ams/# skype
skype: error while loading shared libraries: libqt-mt.so.3: cannot open
shared object file: No such file or directory
sella:/home/ams/# ldd /usr/bin/skype
        linux-gate.so.1 =>  (0xffffe000)
        librt.so.1 => /lib32/librt.so.1 (0xf7f42000)
        libasound.so.2 => /usr/lib32/libasound.so.2 (0xf7e82000)
        libqt-mt.so.3 => not found

I notice you're using 32-bit shlibs here, but...

sella:/home/ams# locate libqt-mt.so.3
/usr/lib/libqt-mt.so.3
/usr/lib/libqt-mt.so.3.3
/usr/lib/libqt-mt.so.3.3.7
/usr/share/qt3/lib/libqt-mt.so.3
/usr/share/qt3/lib/libqt-mt.so.3.3

...these all appear to be native 64-bit.

sella:/home/ams# ldconfig -v | grep libqt-mt.so.3
        libqt-mt.so.3 -> libqt-mt.so.3.3.7
sella:/home/ams/# ls -l /usr/lib/libqt-mt.so.3.3.7
-rw-r--r-- 1 root root 10390056 Oct 21 13:45 /usr/lib/libqt-mt.so.3.3.7
sella:/home/ams# /usr/bin/skype
/usr/bin/skype: error while loading shared libraries: libqt-mt.so.3:
cannot open shared object file: No such file or directory

You didn't run ldd again to see if it's now found?

Any suggestions why the library isn't picked up? TIA.

If you can get the 32-bit libqt-mt.so, that might help.  I've never
used 64-bit linux, so I'm just guessing.

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com



Reply to: