Everything started with this simple Roguewave SourcePro demo installer but the problem surely applies to many other installers. Upon running the installer it exits with the following errors:

./linux/install_linux.bin<br></br>Preparing to install...<br></br>Extracting the JRE from the installer archive...<br></br>Unpacking the JRE...<br></br>Extracting the installation resources from the installer archive...<br></br>Configuring the installer for this system's environment...<br></br>nawk: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory<br></br>dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory<br></br>/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory<br></br>basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory<br></br>dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory<br></br>basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory<br></br><br></br>Launching installer...<br></br><br></br>grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory<br></br>/tmp/install.dir.20673/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory<br></br><br></br>

After googling a while I found the problem is related the the LD_ASSUME_KERNEL option which is used in the installer script. Here is a link where this option is partially explained. As such the solution consists of removing this option which can be done with these commands (you will find them in many forms on the net):

cp install_linux.bin install_linux.bin.bak<br></br>cat install_linux.bin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > install_linux.bin<br></br>

Note that the size of the .bin file must be the same because it consists of a shell followed by the archive at a precise offset so you must be very careful on how to change the script without changing the offset of the data. This is why the following would be wrong:

cat install_linux.bin.bak | sed "s/export LD_ASSUME_KERNEL/#export LD_ASSUME_KERNEL/" > install_linux.bin

as it will change the offset by 1.

Hope it helps.