centos7-安装docker-compose 报错/lib64/libc.so.6: version `GLIBC_2.28‘ not found

新增安装的centos7虚拟机,按要求需要安装docker-compose,遇到了使用docker-compose命令时报错
“[11798] Error loading Python lib ‘/tmp/_MEIztwHzf/libpython3.9.so.1.0’: dlopen: /lib64/libc.so.6: version ‘GLIBC_2.28’ not found (required by /tmp/_MEIztwHzf/libpython3.9.so.1.0)”,
然后有下载glibc-2.28进行安装又遇到报错
“configure: error: in `/root/test/glibc-2.28/build’:
configure: error: no acceptable C compiler found in $PATH” ,
然后按照论坛的推荐安装了yum install gcc,后又报错
“These critical programs are missing or too old: make bison compiler
Check the INSTALL file for required versions.”,
后面安装了升级了make和bison,仍然继续报错“These critical programs are missing or too old: compiler
Check the INSTALL file for required versions.”确实脑壳都爆了。
偶然翻得一篇文章https://blog.csdn.net/u012149637/article/details/112968173解决了我的问题,现将整个安装流程及问题解决整理一遍。

1.开通外网
2.安装docker
3.docker-compose
4.centos升级GCC编译器
5.升级make
6.安装glibc-2.28

1.开启外网

1.1打开网络:

/etc/sysconfig/network-scripts/ifcfg-ens33

修改NOBOOT为yes

1.2重启网络:

service  network restart

2安装docker:

2.1docker安装

sudo yum install -y yum-utils device-mapper-persistent-data lvm2
当你在Centos系统中启动MYSQL服务时,出现了"./mysqld: /lib64/libc.so.6: version `GLIBC_2.28' not found"的错误提示。这个错误通常是由于系统中缺少GLIBC_2.28版本导致的。 要解决这个问题,你可以按照以下步骤进行操作: 1. 首先,需要下载GLIBC2.28版本。你可以使用以下命令下载并解压缩GLIBC-2.28的源代码: ```shell cd /usr/local/ wget https://mirror.bjtu.edu.cn/gnu/libc/glibc-2.28.tar.xz --no-check-certificate tar -xf glibc-2.28.tar.xz ``` 2. 进入解压缩后的glibc-2.28目录并创建一个build目录: ```shell cd glibc-2.28/ mkdir build cd build/ ``` 3. 使用configure命令设置安装路径: ```shell ../configure --prefix=/usr/local/glibc-2.28 ``` 4. 接着,编译和安装GLIBC-2.28: ```shell make make install ``` 完成上述步骤后,系统应该已经成功安装GLIBC-2.28版本。尝试重新启动MYSQL服务,应该不再出现"./mysqld: /lib64/libc.so.6: version `GLIBC_2.28' not found"的错误提示了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [libstdc++6_4.7.2-5_amd64.7z](https://download.csdn.net/download/yunlong3727/12547104)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [解决/lib64/libc.so.6: version `GLIBC_2.28‘ not found (required by](https://blog.csdn.net/LJL_1003/article/details/127968993)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [Centos /lib64/libc.so.6: version `GLIBC_2.28‘ not found (required by](https://blog.csdn.net/NinjaKilling/article/details/125979091)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值