查看当前make版本
[root@localhost ~]# make -v
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.
[root@localhost ~]#
下载make并安装
[root@localhost ~]# cd /src/
[root@localhost src]# wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz
[root@localhost src]# tar -xf make-4.3.tar.gz
[root@localhost src]# cd make-4.3
[root@localhost make-4.3]# ./configure --prefix=/program/make-4.3
[root@localhost make-4.3]# make
[root@localhost make-4.3]# make install
创建符号链接(软链接)
[root@localhost ~]# cp /usr/bin/make /usr/bin/make.default && mv /usr/bin/make /usr/bin/make.bak
[root@localhost ~]# ln -sv /program/make-4.3/bin/make /usr/bin/make
"/usr/bin/make" -> "/program/make-4.3/bin/make"
[root@localhost ~]#
查看当前make版本
[root@localhost ~]# make -v
GNU Make 4.3
为 x86_64-pc-linux-gnu 编译
Copyright (C) 1988-2020 Free Software Foundation, Inc.
许可证:GPLv3+:GNU 通用公共许可证第 3 版或更新版本<http://gnu.org/licenses/gpl.html>。
本软件是自由软件:您可以自由修改和重新发布它。
在法律允许的范围内没有其他保证。
[root@localhost ~]#