Zero G installer error

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
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
nawk: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Launching installer...

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/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

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
cat install_linux.bin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > install_linux.bin

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.

Leave a Reply

*