服务器版本CentOS7.9升,级glibc的时候报了以下错误:
These critical programs are missing or too old: make
Check the INSTALL file for required versions
说明当前make版本太低,需要先升级一下make的版本,但是版本太高也不行,容易和其他组件库不兼容,我这里有一套经过验证的兼容版本可以直接使用:gcc-8.3.1+make-4.3+glibc-2.28。
先查看服务器版本:
[root@iZ2ze8iob5572xlhmkvso8Z ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
在查看当前make版本:
[root@iZ2ze8iob5572xlhmkvso8Z ~]# make --version
GNU Make 3.82
Built for x86_64-redhat-linux-gnu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
在make最新下载地址选择合适的版本进行下载:
[root@iZ2ze8iob5572xlhmkvso8Z ~]# wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz --no-check-certificate # 不验证证书
[root@iZ2ze8iob5572xlhmkvso8Z ~]# tar -xzvf make-4.3.tar.gz
[root@iZ2ze8iob5572xlhmkvso8Z ~]# cd make-4.3/
[root@iZ2ze8iob5572xlhmkvso8Z ~]# ./configure --prefix=/usr/local/make
[root@iZ2ze8iob5572xlhmkvso8Z ~]# make
[root@iZ2ze8iob5572xlhmkvso8Z ~]# make install
[root@iZ2ze8iob5572xlhmkvso8Z ~]# cd /usr/bin/
[root@iZ2ze8iob5572xlhmkvso8Z ~]# mv make make.bak ## 备份一下
[root@iZ2ze8iob5572xlhmkvso8Z ~]# ln -sv /usr/local/make/bin/make /usr/bin/make ## 建立软连接
验证一下,会发现已经升级成功了:
[root@iZ2ze8iob5572xlhmkvso8Z ~]# make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.