centos7中升级make到最新版本

 

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.

 

posted @   小鲨鱼2018  阅读(2579)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
历史上的今天:
2021-09-30 c primer plus 12 编程练习
2020-09-30 beagle 填充 Exception in thread "main" java.lang.IllegalArgumentException: NaN
点击右上角即可分享
微信分享提示