Hello Ubuntu experts,
I have a weird problem with the linker in Ubuntu 10.04 64bit. When I start the program `foton` (this is some scientific software from colleagues. you probably wont find it on your machine) it complains about a missing library.
Code:
root@cds-ws1:/home/cds# foton
foton: error while loading shared libraries: libCore.so.5.26: cannot open shared object file: No such file or directory
I get the software running when I enter `export LD_LIBRARY_PATH=/opt/root/lib` in my shell before I enter `foton`. But, as you might have heard (I could not find a big official announcement of that important change) the LD_LIBRARY_PATH variable will be unset by Ubuntu and should not be used anymore.
So, I went for the /etc/ld.so.conf method and created a file where I put the needed library paths in.
Code:
root@cds-ws1:/home/cds# cat /etc/ld.so.conf.d/cds.conf
/opt/apps/lib
/opt/root/lib
Then I ran `ldconf -v` and the output looks fine to me.
Code:
root@cds-ws1:/home/cds# ldconfig -v |grep libCore
/sbin/ldconfig.real: Can't stat /lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Cannot stat /usr/lib/nvidia-current/libnvcuvid.so: No such file or directory
libCore.so -> libCore.so.5.26
/sbin/ldconfig.real: Cannot stat /usr/lib32/nvidia-current/libXvMCNVIDIA.so: No such file or directory
The linker now should know about the library libCore in the /opt/root/lib folder. But, when I let him check foton...
Code:
root@cds-ws1:/home/cds# ldd `which foton`
linux-vdso.so.1 => (0x00007fff547ff000)
libligogui.so.0 => /opt/apps/lib/libligogui.so.0 (0x00007fd36a1ba000)
libdttview.so.0 => /opt/apps/lib/libdttview.so.0 (0x00007fd369e22000)
libgdsplot.so.0 => /opt/apps/lib/libgdsplot.so.0 (0x00007fd369b88000)
libgdsalgo.so.0 => /opt/apps/lib/libgdsalgo.so.0 (0x00007fd36997e000)
libdmtsigp.so.0 => /opt/apps/lib/libdmtsigp.so.0 (0x00007fd369654000)
libxsil.so.0 => /opt/apps/lib/libxsil.so.0 (0x00007fd369338000)
libgdsbase.so.1 => /opt/apps/lib/libgdsbase.so.1 (0x00007fd3690f8000)
libgdscntr.so.1 => /opt/apps/lib/libgdscntr.so.1 (0x00007fd368d50000)
liblxr.so.0 => /opt/apps/lib/liblxr.so.0 (0x00007fd368b4a000)
libfftw3f_threads.so.3 => /usr/lib/libfftw3f_threads.so.3 (0x00007fd368943000)
libfftw3f.so.3 => /usr/lib/libfftw3f.so.3 (0x00007fd368650000)
libfftw3_threads.so.3 => /usr/lib/libfftw3_threads.so.3 (0x00007fd368448000)
libfftw3.so.3 => /usr/lib/libfftw3.so.3 (0x00007fd36814d000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fd367f30000)
libexpat.so.1 => /lib/libexpat.so.1 (0x00007fd367d06000)
libCore.so.5.26 => not found
...
The linker tells he doesn't know libCore
As you can see, the libraries from the other path I included (/opt/apps/lib) can be found.
WTH is this? I have no idea why the library is not found.
What else can I try? Any hint welcome.
Cheers,
Michael
Bookmarks