Installing EBS 12.1.1 on RHEL 6.1 x86_64‏

i am in process to install R12.1.1 on RHEL 6.1.

while installing pre-requisite on RHEL 6.1 i am facing following error :

rpm -ivh xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm

error: Failed dependencies:
libX11.so.6 is needed by xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386
libXext.so.6 is needed by xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386

xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm is 32 bit rpm but it is written in oracle doccumentation to install this 32 bit rpm on 64 bit operating system also.
when i search for dependencies they are already present.

locate libX11.so.6

/usr/lib64/libX11.so.6
/usr/lib64/libX11.so.6.3.0

how do i solve such errors ?

You will need to find the 32 bit version of the packages required.

The locate commands shows the installed version to be in /lib64 (note the 64 means 64 bit version).

Download them and either install them manually or use yum to install xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm again and yum should resolve the dependancies and install the extra packages for you.

xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm is 32 bit.

why i am getting error :

error: Failed dependencies:
libX11.so.6 is needed by xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386
libXext.so.6 is needed by xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i

you are using rpm, which does not resolve dependancies. yum will resolve dependancies if it can find the correct packages to resolve them.

or use the --nodeps option on rpm although this isn't recommended as you will most likely run into issues if the dependant packages are not installed.

As i said you have the 64bit version of the dependancies installed, whereas a 32 bit program will require the 32bit libraries to run properly.