Who spotted the omission?
By Olaf Heimburger-Oracle on Mar 10, 2011
In my entry OFM 11g: Install OAM 10.1.4.3 (32-bit) on 64-bit RedHat AS 5 I explained how to install OAM 10.1.4.3 (32-bit) on 64-bit RedHat. This is great and works. If you seriously want to use OAM 10.1.4.3 you should consider OHS 11g 32-bit. But this installation is a bit tricky. Nearly all tricks to get this done are described in the above mentioned entry. Today I realized that I missed a small bit to get the installation successfully done.
The missing part is within the script to create a vital piece of the OHS 11g package. This part is called genclntsh and resides in $OHS_HOME/bin. This script uses gcc to link binaries. By default this script works great, but fails on a 64-bit Linux.
To get around this, find the variable LD and change the value of gcc to gcc -m32.
On support.oracle.com you will find a Note that suggests to build a small shell script named gcc and includes the -m32 switch. Actually, I consider this as dangerous, because we are humans and tend to forget things quickly. Building a globally available script that changes things for a single setup has side effects that will result in unpredictable results.