在linux上安装的bin文件,有些是基于版本较为旧的内核开发,或者是基于32位系统的开发并在64位linux系统上运行,均可能出现如下错误,今天在安装一个软件时候就遇到下面的错误: MyLinux~#./yourfile.bin 回车提示下面错误: Extracting temporary installation utilities to /opt/temp… Executing the installation GUI… 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 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 /opt/temp/TEMP_ABAQUS_utils_root/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
Removing temporary installation utilities… …finished. 解决方法: cp yourfile.bin yourfile.bin.bak (so we have a working copy) cat your.bin.bak | sed “s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/” > /tmp/yourfile.bin 即对bin文件重新配置 之后,进入tmp目录(cd /tmp)执行bin文件。即可解决上述问题。