LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error while loading shared libraries: libtermcap.so.2: cannot open shared object file (https://www.linuxquestions.org/questions/linux-software-2/error-while-loading-shared-libraries-libtermcap-so-2-cannot-open-shared-object-file-848765/)

astroboy2000ir 12-06-2010 08:51 PM

error while loading shared libraries: libtermcap.so.2: cannot open shared object file
 
Hi every one, I am new to Linux, I have just understood the very basics of the command line and the file system, but I am still having practical problems: Here is the biggest so far:

I just installed IRAF (An Astronomical Image editing sofware) and even though it prompted me with "Successfully installed", when I want to run the application it gives me this error:

Code:

/iraf/iraf/bin.linux64/ecl.e: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory
Looking around in the internet I saw some users had proposed a symbolic link to libncurses.so.5.7 since it seems ncurses has replaced termcap. But even though I made this link:

Code:

$ls -l libtermcap.so.2
lrwxrwxrwx. 1 root root 17 Dec  6 11:04 libtermcap.so.2 -> libncurses.so.5.7

I still get the same error.
I made the same symbolic link, named libtermcap.so.2 in both my /usr/lib/ and /lib/ directories to the /lib/libncurses.so.5.7 since some users had mentioned /usr/lib/ and some /lib/.

Does any one know how I can fix this issue?

Thanks a lot ;)

I am running Fedora 14 (64bit) on my system and this version of IRAF 2.15 is made for 64bit systems.

bathory 12-07-2010 12:15 AM

Hi,

I guess that you need the symlinks in /lib64 and /usr/lib64 since you're running a 64bit OS and trying to run a 64bit application. Dont forget to run ldconfig afterwards.
Also installing the ncurses-devel package might help

Regards

knudfl 12-07-2010 02:32 PM

I tried with a symlink libtermcap.so.2 to libtermcap.so in Fedora 13 - 64.
No luck. ( Error : file too short.)

Installing libtermcap 2.08 :
# yum remove ncurses-devel
# rpm -Uvh lib64termcap2-2.0.8-49mdv2010.1.x86_64.rpm

http://distrib-coffee.ipsl.jussieu.f...0.1.x86_64.rpm

Then no more libtermcap.so.2 issues with IRAF, it seems.

..

astroboy2000ir 12-07-2010 11:16 PM

Thanks a lot for both replies, I also posted this problem in the iraf.net forum (I wasn't the only one!) and there, the site manager was able to change the original install and ecl.e files which completely fixed the issue...

Thank again...


All times are GMT -5. The time now is 11:21 PM.