CentOS 6.5 升级glibc 时遇到的问题

starwonder 2015-11-23 02:00:27
CentOS 6.5 64bit 企业版 安装之后,GLIBC 的版本如下:
ll /lib64/libc.so.6
lrwxrwxrwx. 1 root root 12 Nov 17 14:01 /lib64/libc.so.6 -> libc-2.12.so
2.12 的版本太低了,我需要升级为2.14以上的。
我直接下载了,最新的2.22版本。
解压缩之后,configure:
./glibc-2.22/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
运行上面的命令时出现了下面的错误:
------------------------------------------------------------------------------------------
...
checking whether g++ can link programs... yes
checking for sysdeps preconfigure fragments... aarch64 alpha arm hppa i386 m68k microblaze mips nacl nios2 powerpc s390 sh sparc tile x86_64 checking whether gcc compiles in -mx32 mode by default... no

configure: running configure fragment for add-on libidn
------------------------------------------------------------------------------------------

看log文件:config.log 中,有这么几句:
------------------------------------------------------------------------------------------
configure:9: checking whether gcc compiles in -mx32 mode by default
configure:27: gcc -c -g -O2 conftest.c >&5
conftest.c:12:3: error: #error not x32
configure:27: $? = 1
configure: failed program was:
| /* confdefs.h */
...
------------------------------------------------------------------------------------------

这意思是检查编译器是否默认以32位模式编译代码吧?
我猜 我这64位的CentOS 可能默认是以64位编译吧?怎么能设置成默认以32位编译呢?
因为这一项检查NG,所以卡在这里一直过不去。

请诸位有识者帮帮我。
初来乍到,分数有限,还请高人不吝赐教。
...全文
387 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

19,610

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧