Scripting
Fix Java Install Error
When trying to install a java app using a .sh package (ie. a self installer) it may terminate with output like the following :
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... awk: error while loading shared libraries: libdl.so.2: 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 hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
The fix (taken from a post by narfman0) which worked for me is one or other of:
1. ) cat name.bin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > name.bin 2. ) Go into your .bin file (vi file.bin) and search for: export LD_ASSUME You should see something along the lines of "export LD_ASSUME_KERNEL=2.2.5" Now, I have not tested your installer, but this is generic fix for most of them: change those exports in the file to #xport, so it's commented out and there are the same amount of characters. export LD_ASSUME_KERNEL=2.2.5 should read #xport LD_ASSUME_KERNEL=2.2.5