CentOS7安装高版本的make

说明

centos7默认的make版本比较低 3.8.2,有时候构建其他组件的时候会报错,必要的时候需要升级一下

升级步骤

wget https://ftp.gnu.org/gnu/make/make-4.4.tar.gz
# 解压缩
tar -zxvf make-4.4.tar.gz
# 进入目录
cd make-4.4
# 配置
./configure
# 编译
make
# 安装
sudo make install

# 安装完成后需要重启
reboot

# 查看版本
make -v
GNU Make 4.4

# 创建软连接
ln -s  /usr/local/bin/make  /usr/bin/gmake

# 查看版本
 gmake -v
GNU Make 4.4
为 x86_64-pc-linux-gnu 编译
Copyright (C) 1988-2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://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 on   没刮胡子  阅读(332)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
点击右上角即可分享
微信分享提示