When starting or recompiling applications like lyx I get the error: <<<<< error while loading shared libraries: libqt-mt.so.3: cannotopen shared object file: Error 40 >>>>> recompiling qt did not work, tried revdep-rebuild and checked /etc/ld.so.conf now running out of ideas.
Error 40 means that are bad symlinks, or circular symlinks... what's the output of # ls -l /usr/qt/3/lib/
Created attachment 50835 [details] output of ls -l /usr/qt/3/lib/ output of ls -l /usr/qt/3/lib/ as requested
/usr/qt/3/lib/ looks fine so far as far as I can see (unless I'm blind) but I just noticed that there is libqt-mt.so.3 in /usr/lib pointing to /usr/qt/3/lib/: aragorn root # ls -l /usr/lib/libqt* lrwxr-xr-x 1 root root 10 Feb 8 23:28 /usr/lib/libqt-mt.so.3 -> libqt.so.2 lrwxr-xr-x 1 root root 22 May 13 2004 /usr/lib/libqt.so.2 -> /usr/qt/3/lib/libqt.so -rw-r--r-- 1 root root 3002 Oct 30 08:48 /usr/lib/libqthreads.a -rwxr-xr-x 1 root root 754 Oct 30 08:48 /usr/lib/libqthreads.la lrwxrwxrwx 1 root root 21 Oct 30 08:48 /usr/lib/libqthreads.so -> libqthreads.so.12.3.0 lrwxrwxrwx 1 root root 21 Oct 30 08:48 /usr/lib/libqthreads.so.12 -> libqthreads.so.12.3.0 -rwxr-xr-x 1 root root 4388 Oct 30 08:48 /usr/lib/libqthreads.so.12.3.0
Fixed! The bad symlink was the libqt-mt.so.3 in /usr/lib even as it may look good. Resolution was to delete /usr/lib/libqt-mt.so.3 and /usr/lib/libqt.so.2 and all is fine again! Thanks, I did not thought about the symlinks.