CentOS 6.5 升级glibc 时遇到的问题
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,所以卡在这里一直过不去。
请诸位有识者帮帮我。
初来乍到,分数有限,还请高人不吝赐教。