anancds / document

MIT License
1 stars 0 forks source link

glibc升级到2.29 #121

Open anancds opened 3 years ago

anancds commented 3 years ago

wget http://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz

anancds commented 3 years ago

1、下载glibc,解压

tar -zxvf glibc-2.29.tar.gz

2、准备一个编译文件夹

mkdir build cd build

3、配置configure

../configure --prefix用这个就可以了

../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin 这里要说一下 上面的 --prefix=/usr 一定不能改,只能是 --prefix=/usr,否则安装不成功,后面坑一堆

4、编译安装

make -j4 make install