centos5.5下mangodb启动报错glibc

mangodb启动报错glibc找不到(centos5.5)

报错形式

[root@test-172-16-0-139-ip mongodb-server]# /data/mongodb-server/bin/mongod --port 27017 --fork --dbpath=/data//mongodb-server/data/ --logpath=/data//mongodb-server/logs/mongodb.log --logappend
/data/mongodb-server/bin/mongod: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by /data/mongodb-server/bin/mongod)
/data/mongodb-server/bin/mongod: /lib64/libc.so.6: version `GLIBC_2.6' not found (required by /data/mongodb-server/bin/mongod)
/data/mongodb-server/bin/mongod: /lib64/libc.so.6: version `GLIBC_2.8' not found (required by /data/mongodb-server/bin/mongod)
/data/mongodb-server/bin/mongod: /lib64/libc.so.6: version `GLIBC_2.9' not found (required by /data/mongodb-server/bin/mongod)
/data/mongodb-server/bin/mongod: /lib64/libc.so.6: version `GLIBC_2.10' not found (required by /data/mongodb-server/bin/mongod)

检查

  • 当前系统的支持所有版本的glibc,发现缺少提示的所有版本
strings /lib64/libc.so.6 |grep GLIBC

解决方式,按照下面相同的方式安装每一个版本的glibc

[root@test-172-16-0-139-ip ~]# cd /usr/src/

[root@test-172-16-0-139-ip src]# tar -zxf glibc-2.7.tar.gz 

[root@test-172-16-0-139-ip src]# cd glibc-2.7

[root@test-172-16-0-139-ip glibc-2.7]# mkdir -v ../glibc-build

mkdir: created directory `../glibc-build'

[root@test-172-16-0-139-ip glibc-2.7]# cd ../glibc-build/

[root@test-172-16-0-139-ip glibc-build]# /usr/src/glibc-2.7/configure --prefix=/usr/

[root@test-172-16-0-139-ip glibc-build]# make   

[root@test-172-16-0-139-ip glibc-build]# make install

注意点

  • 不要为了偷懒,开启多个session同时进行多个glibc安装,一个一个的来

  • glibc在linux系统中的重要程度不言而喻,其实不建议这样搞.后果试试?

上一篇:POJ 1852


下一篇:storm启动报错: InvalidTopologyException(msg:Component: [mybolt] subscribes from non-existent stream: [default] of component [es-bolt])