修复/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory问题

在配置MongDB的是时候出现这/lib/ld-linux.so.2问题

[root@localhost local]# /usr/local/mongodb/mongodb/bin/mongod --dbpath=/usr/local/mongodb/mongodb/data --logpath=/usr/local/mongodb/mongodb/logs --logappend --auth --port=27017 --fork
-bash: /usr/local/mongodb/mongodb/bin/mongod: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@localhost local]#

1、在64系统里执行32位程序如果出现/lib/ld-linux.so.2: 
bad ELF interpreter: No such file or directory,安装下glic即可
 
sudo yum install glibc.i686
 
2、error while loading shared libraries: libz.so.1: 
cannot open shared object file: No such file or directory
sudo yum install zlib.i686 

 

posted @ 2016-04-13 10:49  小码哥、iByte  阅读(10082)  评论(0编辑  收藏  举报