Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Libtermcap.so.2: Cannot Open Shared Object File, libtermcap.so.2: cannot open shared obje
tcma
post Aug 12 2004, 10:34 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 12-August 04
Member No.: 3,543



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
Go to the top of the page
 
+Quote Post
Hemant
post Aug 13 2004, 05:25 AM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



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.


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
tcma
post Aug 13 2004, 07:15 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 12-August 04
Member No.: 3,543



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th October 2017 - 05:33 PM