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 2024-09-10 15:04  没刮胡子  阅读(581)  评论(0)    收藏  举报

导航