升级make 版本 为 4.2

升级make 版本 为 make 4.2

主要是为了满足编译需求, 截至目前,很多代码编译时会要求make 版本必须大于4.0版本,这里讲述 升级 make版本到最新版本(最新版本为4.2),方法如下:

1、下载make的最新安装包,下载地址如下:

http://www.atmcu.com/986.html

2、解压安装包,指令如下:

tar zxvf make-4.2.tar.gz

3、配置安装包:

cd make-4.2

 

./configure

4、编译并安装make

make 

sudo

make install

5、替换原有版本,比如3.81版本

sudo cp make /usr/bin/make

6、检查make版本,到些安装结束

make –version

GNU Make 4.2
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 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.

转载http://www.atmcu.com/986.html

原文地址:https://www.cnblogs.com/ershoushouji/p/15045305.html