Linux升级GLIBC问题.md
升级GLIBC
当编译时遇到报错,安装升级GLIBC
1 | ./nginx-vtx-exporter: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./nginx-vtx-exporter) |
升级GLIBC到2.34版本
1 | wget https://mirror.bjtu.edu.cn/gnu/libc/glibc-2.34.tar.xz |
通过 strings /lib64/libc.so.6 | grep -E “^GLIBC” | sort -V -r | uniq 查询是否存储在对应版本
1 | strings /lib64/libc.so.6 | grep -E "^GLIBC" | sort -V -r | uniq |
报错解决
运行到../configure –prefix=/usr/local/glibc-2.34时报错
报错1:
configure: error: in `/root/test/glibc-2.34/build’:
configure: error: no acceptable C compiler found in $PATH
1 | yum install gcc -y |
报错2:
*** These critical programs are missing or too old: make bison python
*** Check the INSTALL file for required versions.
解决方案: make bison python太过老旧。 一次升级解决
升级GCC编译器
1 | yum -y install centos-release-scl |
升级make
1 | wget http://ftp.gnu.org/gnu/make/make-4.2.tar.gz |
升级bison
1 | yum install -y bison |
升级python
系统默认python是2.7版本,需要升级python升级参考
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Austines Hexo Blog!