灌溉梦想,记录脚步
« »
2009年4月16日技术合集

error while loading shared libraries

在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文件。即可解决上述问题。

日志信息 »

该日志于2009-04-16 14:23由 admin 发表在技术合集分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

发表回复