Skip to content

Ubuntu 安装 glibc

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

shell
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

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

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

”缺啥补啥“😀:

shell
 sudo apt install bison

继续运行:

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

最后:

shell
sudo make && sudo make install

参考:

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

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

亲手创建自己所需的软件,是程序员的幸运。