Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1 cannot open shared object file

    Running a program get this error.

    # ch
    ch: error while loading shared libraries: cannot open shared object file: No such file or directory

    However, is present.
    # ls -l /lib/libtermcap*
    lrwxrwxrwx 1 root root 19 Aug 12 10:03 /lib/ ->
    lrwxrwxrwx 1 root root 19 Aug 4 13:48 /lib/ ->
    -rwxr-xr-x 1 root root 15320 Aug 12 10:03 /lib/

    I tried linking with, but still
    doesn't work.

    ldd /bin/ch => not found => /lib32/ (0x5557c000) => /lib32/ (0x5559d000) => /lib32/ (0x556b4000) => /lib32/ (0x556b8000)
    /lib/ => /lib/ (0x55555000) is in the same /lib directory as /
    Why is found but not

    Linux version 2.6.7-gentoo-r11 (root@rose) (gcc version 3.4.1 (Gentoo
    Linux 3.4.1, ssp-3.4-2, pie- amd64

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    London, UK
    run ldconfig to update the linker with the list of libaries that are available to it.

  3. #3
    I do
    # ldconfig /lib/

    but the problem is still there.

  4. $spacer_open

Posting Permissions

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