Linux Library Madness

Been having a very hard time working with a DBA to install Oracle 10g on a RHEL 4 box. He was getting this message.

#java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-09-23_10-47-22AM/jre/1.4.2/lib/i386/ wrong ELF class: ELFCLASS64

First thing that I did was figure out what rpm provides this file

#rpm -qf /usr/lib64/

this command responds with: libXtst-1.0.1-3.1

Now from what I have read Oracle 10g does not like 64 bit libraries, so I needed to figure out what architecture that I have installed.

# rpm -qa –qf="%{n}-%{v}-%{r}.%{arch}.rpm\n" "libXtst"

So know I know that I have the 64 bit version of the rpm installed. I need to install the 32 bit version.

#libXtst.i386                             1.0.1-3.1              base
Matched from:
X.Org X11 libXtst runtime library
X.Org X11 libXtst runtime library

Ok, there is the package. So lets install it.
yum install libXtst.i386

Issue resolved.

Additional One Liners:

rpm -ivh packages(s).rpm
install rpm file(s)

rpm -Uvh packages(s).rpm  
upgrade system with rpms

rpm -e package
remove package

rpm -q package  
show version of package installed

rpm -q -i package  
show all package metadata

rpm -q -f /path/file  
what package does file belong

rpm -ql package
lists files in a rpm package

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.