Errors when installing Zend Studio or Zend SafeGuard: "error while loading shared libraries"

Follow

Applies To:

[ Zend Studio 4.x and 5.x, Zend Guard 4.x ]
[ Linux ]

Symptom

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

Technical Details

This problem is caused due to incompatibility of the installer's Java Run-time Environment with certain system libraries.

Resolution / Workaround

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.

 


Excerpt: When trying to install Zend Studio Client or Zend SafeGuard 4.0 on various Linux systems, the installer crashes: "error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory"


Original Post Date: 2009-04-13 19:47:00

Alternative Description:

"error while loading shared libraries" errors when installing Zend Studio or Zend SafeGuard

_____
Tags: Debian / Ubuntu,Fedora,Gentoo,installation,libc.so.6,Libraries,RedHat Enterprise Linux / CentOS,SafeGuard,Shared,SUSE Linux Enterprise Server / OpenSUSE,ZDE 5.x and older,Zend Guard,oldKB

Comments