"error while loading shared libraries" errors when installing Zend Studio or Zend SafeGuard on Linux
Article #184
Product: Zend Studio, Zend SafeGuard Suite, Zend Encoder, Zend Guard
Symptoms
When trying to install Zend Studio Client or Zend SafeGuard 4.0 on various Linux systems, the installer crashes.
This has been reported in the following Linux distributions:
Gentoo Linux, Fedora Core, Suse 10.x and Ubuntu 6.1
The following errors are thrown into the terminal (or similar, like libm.so.6):
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
Launching installer...
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/tmp/install.dir.17548/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or
directory
Cause
This problem is caused due to incompatibility of the installer's Java Run-time Environment with certain system libraries.
Resolution
After extracting the installer, run the following commands in a terminal directory on the same directory where you extracted the installer:
$ cp ZendSafeGuard-4_0_0.bin ZendSafeGuard-4_0_0.bin.bak
$ cat ZendSafeGuard-4_0_0.bin.bak | \
sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > \
ZendSafeGuard-4_0_0.bin
Note: If you are installing Zend Studio Client, replace all occurrences of "ZendSafeGuard-4_0_0.bin" with "ZendStudio-5_1_0.bin" or "ZendStudio-X_X_X.bin" if
you are installing a different version.
After the installation is complete, you can delete both the installer and the installer's .bak file.
Zend Studio Client specific notes
The same problem might also happen when trying to execute Zend Studio Client after the installation. In order to solve this, run the same commands on the {Zend Studio
Installation Dir}/bin/ZDE file:
$ cd /usr/local/Zend/ZendStudioClient-5.1.0/bin
$ cp ZDE ZDE.bak
$ cat ZDE.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > ZDE
$ rm ZDE.bak
The information in this article applies to
Zend Studio Client on Linux
Zend SafeGuard 4.0.0 and up on Linux
Keywords
Installation, Gentoo, Fedora, SafeGuard, Studio, Shared, Libraries, libc.so.6
Last Updated: 2006-10-31 12:40:40
» Send us feedback
|