试图运行程序,提示"libc.so.6: version `GLIBC_2.14' not found",
原因是系统的glibc版本太低,软件编译时使用了较高版本的glibc引起的:
问题Centos6最高支持glibc-2.12
查看系统glibc支持的版本:
strings /lib64/libc.so.6 |grep GLIBC_
rpm -qa |grep glibc
下载glibc编译安装,升级
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.14.tar.gz
tar -xvf glibc-2.14.tar.gz
tar -xvf glibc-ports-2.14.tar.gz
mv glibc-ports-2.14 glibc-2.14/ports
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/usr/local/glibc-2.14
make -j4
make install
问题:"/root/glibc-2.14/build/elf/ldconfig: Can't open configuration file /usr/local/glibc-2.14/etc/ld.so.conf: No such file or directory"
解决:cp /etc/ld.so.c* /usr/local/glibc-2.14/etc/
rm -rf /lib64/libc.so.6
操作删除软链接后系统无法操作任何命令,我们需要复制下面的命令执行后才可以
LD_PRELOAD=/usr/local/glibc-2.14/lib/libc-2.14.so ln -s /usr/local/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6
ln -s /usr/local/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6
重新检查版本,验证已升级
相关文章
- No mapping found for HTTP request with URI 找不到图片或者其他的静态资源问题解决办法
- CentOS 安装redis2.8.13 提醒"libc.so.6: version `GLIBC_2.14' not found"系统的glibc版本太低
- mysql报错问题解决MySQL server PID file could not be found!
- 【亲测】
CentOS下g++: command not found问题的解决(c++环境安装) - Step ‘Publish JUnit test result report’ failed: No test report files were found问题解决
- 解决eclipse出现This Android SDK requires Andro...date ADT to the latest version.问题
- win-sudo插件解决Git bash 执行脚本报错问题 bash: sudo: command not found
- 解决Eclipse导入某些项目时出现的”No projects are found to import“问题
- 解决VTune错误.../lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ...)
- 解决springboot项目请求出现非法字符问题 java.lang.IllegalArgumentException:Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986