Centos 7.9.2009, Fabric-ca-server 报错 /lib64/libc.so.6: version `GLIBC_2.28‘ not found (required by

本文指导读者通过CURL下载并编译Glibc-2.28,解决`bison`和`make`版本过旧的问题,包括安装新版本的工具如bison、make和gcc,以及如何配置和编译过程,适合Linux系统开发者。
摘要由CSDN通过智能技术生成

curl -O http://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz

tar zxf glibc-2.28.tar.gz

cd glibc-2.28/

mkdir build

cd build/

../configure --prefix=/usr #注意了,别修改路径

make -j2

make install

如果../configure 时报错:These critical programs are missing or too old: bison make compiler

      如果bison --version 没找到,安装bison:

       yum install bison

      安装新版make:

wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz

tar xvf make-4.3.tar.gz

cd make-4.3/

./configure

make

sudo make install

yum remove make

ln -s /usr/local/bin/make /usr/bin/

make --version

    安装新版gcc:

yum install centos-release-scl

 yum install devtoolset-7-gcc*

#开机启动

scl enable devtoolset-7 bash

#查看版本

which gcc

gcc --version

End 如果

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值