Ubuntu 安装 glibc

下载地址:http://ftp.gnu.org/gnu/glibc/

1
2
3
4
5
6
7
8
9
10
11
12
13
cd ~

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

tar -zxvf glibc-2.37.tar.gz

cd glibc-2.37

mkdir build

cd build

../configure --prefix=/opt/glibc-2.37

安装过程中遇到如下错误:

1
2
3
configure: error:
*** These critical programs are missing or too old: bison
*** Check the INSTALL file for required versions.

”缺啥补啥“😀:

1
sudo apt install bison

继续运行:

1
../configure --prefix=/opt/glibc-2.37

最后:

1
sudo make && sudo make install

参考:

https://sourceware.org/glibc/wiki/Testing/Builds

https://blog.csdn.net/mengzhongsuiyi521/article/details/88432237