Help - Search - Members - Calendar
Full Version: Libtermcap.so.2: Cannot Open Shared Object File
Linuxhelp > Support > Technical Support
tcma
Running a program get this error.

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

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

I tried linking libtermcap.so.2 with libncurses.so.5, but still
doesn't work.

I had done
# ldconfig /lib/libtermcap.so.2

but the problem is still there.

ldd /bin/ch
libtermcap.so.2 => not found
libm.so.6 => /lib32/libm.so.6 (0x5557c000)
libc.so.6 => /lib32/libc.so.6 (0x5559d000)
libdl.so.2 => /lib32/libdl.so.2 (0x556b4000)
libcrypt.so.1 => /lib32/libcrypt.so.1 (0x556b8000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)

libtermcap.so.2 is in the same /lib directory as /ld-linux.so.2.
Why ld-linux.so.2 is found but not libtermcap.so.2?


Linux version 2.6.7-gentoo-r11 (root@rose) (gcc version 3.4.1 (Gentoo
Linux 3.4.1, ssp-3.4-2, pie-8.7.6.3)) amd64
Hemant
set LD_LIBRARY_PATH so that it points to the correct location:
$export LD_LIBRARY_PATH=/lib
and then try to execute the prog it shoud work.
You can put the above line in your ~/.bashrc also.
tcma
QUOTE (Hemant @ Aug 13 2004, 05:25 AM)
set LD_LIBRARY_PATH so that it points to the correct location:
$export LD_LIBRARY_PATH=/lib
and then try to execute the prog it shoud work.
You can put the above line in your ~/.bashrc also.

I had already done export LD_LIBRARY_PATH=/lib but the problem still exist.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.