Chinaunix首页 | 论坛 | 博客
  • 博客访问: 75260
  • 博文数量: 16
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 126
  • 用 户 组: 普通用户
  • 注册时间: 2013-02-27 16:04
个人简介

奋斗的蜗牛

文章分类

全部博文(16)

文章存档

2014年(13)

2013年(3)

我的朋友

分类: LINUX

2014-06-25 10:33:55

/lib/libc.so.6: version `glibc_2.7′ not found


我用的设备是centos 5.5_64位的。系统glibc为2.5
地址:
安装时依然提示有问题,但提示 加参数 --disable-sanity-checks
checking host system type... i686-pc-linux-gnu *** On GNU/Linux systems the
*** /usr/local since this might make your system totally unusable.
*** We strongly advise to use a different prefix. For details read the FAQ.
*** If you really mean to do this, run configure again using the extra
*** parameter `--disable-sanity-checks'.

在CentOS中用更新命令到2.5已经是最新版本了,只好手动下载 glibc 2.7 的源码包编译安装更新:


加上此参数安装成功,但是执行zabbix_agentd -c 时还是报同样的错误,于是开始网上大量搜索前辈们留下的宝典
移动安装包到/usr/local/glibc2.7下,加上如下参数重新编译安装glibc2.7

#./glibc-2.9/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin --disable-sanity-checks

#make
#make install

 

安装编译过程中需要注意三点:
1、要将glibc-linuxthreads解压到glibc目录下。
2、不能在glibc当前目录下运行configure。
3、加上优化开关,export CFLAGS="-g -O2 -march=i486",否则会出现错误
'#error "glibc cannot be compiled without optimization"' 


阅读(4650) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~