Zend Studio5.0版本无法在linux安装问题
[root@jack soft]# sh ZendStudio-5_0_0.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...
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...
原因是:Zend Studio自带的JRE跟系统中的某些类库起冲突了。
安装之前先执行:
复制内容到剪贴板
sudo cat ZendStudio-5_2_0.bin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > ZendStudio-5_2_0.bin
安装之后执行:
复制内容到剪贴板
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
(记得加sudo,或者自己切换到root用户,呵呵)