libtermcap.so.2: cannot open shared object file: No such file or directory
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
use ldd to make sure the program is not looking for the library in the wrong place.
if it is looking in the wrong place, add a symbolic link to fix it.
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?
Quote:
Originally posted by qwijibow use ldd to make sure the program is not looking for the library in the wrong place.
if it is looking in the wrong place, add a symbolic link to fix it.
this will print a list of actual paths,
its notmal to see lots of attempted opens but atleast one should be in the right place.
again, if non of the atempts are in the right place, fix with a symbolic link.
as for ldconfig, i may be wrong, but i think ldconfig is only used to locate library's when you are compiling from source, im assuning you installed this program from a binary rpm or somthing similar.
# strace -o error.log /bin/ch
[ Process PID=11358 runs in 32 bit mode. ]
/bin/ch: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory
Hello, I know this is an ancient thread, but it came up in a google search and I wanted to let qwijibow know that his ldd suggestion helped me big time. I have been looking for some kind of utility like that and didn't realize it was standard. Thanks!
Hi, I also know this is a very old thread. But just wanted to thank you for the strace command which helped in solving my issue.
In my case, the executable was checking for the library in the /usr/lib where as the private libraries were in a different path. Right now I created a link in /usr/lib to check if its working.
The path where the libraries are present is present in the LD_LIBRARY_PATH, dont know why its not taking it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.