Troubleshooting
Problem
How to handle the message "error while loading shared libraries" when installing JRules on Fedora Core 5 or SuSE Linux 10 ?
Resolving The Problem
On some systems, running the JRules installer will fail with some error messages:
% sh jrules.bin Preparing to install... 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 [...]
The Unix installer for JRules is essentially a shell script that tries to determine information about the current environment. Accordingly, it chooses certain settings that are broadly compatible. For instance, it tries to choose a Linux thread model that will work for nearly all versions of Linux.
Unfortunately, newer Linux versions, such as Fedora Core 5 and SuSE Linux 10, no longer support this thread model. In these cases, it is unable to run applications that use this old thread model.
On these systems, the solution is to adjust the installer to use the default thread model. To do this, you can use the following two Unix commands:
cp jrules.bin jrules.bin.tmp
cat jrules.bin.tmp | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > jrules.bin
If your installer has a different name, update the commands to reference the correct file name.
This changes one character in the installer, without changing the size of the installer. You should ensure that the installer sizes are unchanged. You can then install the product normally.
Historical Number
jrules/FAQ/238
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21400685