Results 1 to 3 of 3

Thread: 10.04 library not found, ld.so.conf ignored

  1. #1
    Join Date
    Sep 2010
    Beans
    8

    10.04 library not found, ld.so.conf ignored

    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

  2. #2
    Join Date
    Apr 2005
    Beans
    849

    Re: 10.04 library not found, ld.so.conf ignored

    Did you find a solution for this?
    Running 8.10 on a lenovo 3000 n200!
    Fingerprint reader doesn't work.

  3. #3
    Join Date
    Sep 2010
    Beans
    8

    Re: 10.04 library not found, ld.so.conf ignored

    no and yes.

    The ld.so.conf method doesn't work. I consider this a bug.

    I got it working by adding the line
    export LD_LIBRARY_PATH=/opt/apps/lib:/opt/root/lib
    to the users home/.bashrc

    I were surprised that it worked, as I read in other threads that the export of LD_LIBRARY_PATH is not working with 10.04
    http://ubuntuforums.org/showthread.php?t=1498755
    But it seems that setting LD_LIBRARY_PATH locally still is ok in Ubuntu.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •