001、系统
[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core)
002、当前make版本
[root@localhost ~]# 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.
003、下载安装包, 下载地址:https://ftp.gnu.org/gnu/make/
wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz --no-check-certificate tar -xzvf make-4.3.tar.gz cd make-4.3/ ./configure --prefix=/usr/local/make make make install cd /usr/bin/ mv make make.bak ## 备份 ln -sv /usr/local/make/bin/make /usr/bin/make ## 建立软连接
004、测试效果
[root@localhost bin]# make --version ## 升级为了4.3版本 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.
标签:bin,4.3,gnu,--,make,centos7,version,版本 From: https://www.cnblogs.com/liujiaxin2018/p/16745159.html