Saturday, 11 July 2015

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

here target package is libtermcap.so.2
 so commands are:
1. # rpm -qf /lib/libtermcap.so.2   -->> this will produce following result on terminal


compat-libtermcap-2.0.8-49.el6.i686

2.#  rpm -qa | grep  compat-libtermcap  --->> this will produce the following results on terminal

compat-libtermcap-2.0.8-49.el6.i686


from i686 it is clear that  this package is for 32bit OS

3. # find /lib -name libtermcap.so.2

TO INSTALL its 64bit version ::
first of all yum server should be properly working if it is working then use the following command for installation of libtermcap.so.2:::
# yum install compat-libtermcap

(
In Red Hat 6 the library name has changed to compat-libtermcap. If you try to install just libtermcap via Yum it will fail saying "No package libtermcap available." If you try to install libertermcap.so.2 (based on the error message) via Yum it will only install the 32-bit library by default "compat-libtermcap-2.0.8-49.el6.i686"

But, because we are using the 64-bit installer, we need the 64-bit compat-libtermcap library installed. The command to install compat-libtermcap on Red Hat 6 is "yum install compat-libtermcap" This will install the correct library you need "compat-libtermcap-2.0.8-49.el6.x86_64"
)
 
 

No comments:

Post a Comment