1.系统环境
Redhat 9.0
[root@mail /var/root/glibc-2.3]# uname -a
Linux mail 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux
[root@mail /var/root/glibc-2.3]# rpm -q gcc
gcc-3.2.2-5
[root@mail /var/root/glibc-2.3]# rpm -q glibc
glibc-2.3.2-11.9
[root@mail /var/root/glibc-2.3]# as -v
GNU assembler version 2.18 (i686-pc-linux-gnu) using BFD version (GNU Binutils) 2.18
2.编译gcc-core-3.0
下载gcc-core-3.0.tar.bz2
tar -xjf gcc-core-3.0.tar.bz2
cd gcc-3.0
mkdir build
cd build
../configure
make
2.编译glibc2.3
先安装kernel header
rpm -ivh kernel-devel-2.6.9-5.EL.i686.rpm
下载glibc-2.3.tar.bz2和glibc-linuxthreads-2.3.tar.bz2
tar -xjf glibc-2.3.tar.bz2
tar -xjf glibc-linuxthreads-2.3.tar.bz2 -C glibc-2.3
cd glibc-2.3
mkdir build
cd build
../configure --enable-add-ons=yes --disable-sanity-checks
make
阅读(1380) | 评论(0) | 转发(0) |