1. 程式人生 > >CentOS 7 erlang.mk:30: Please upgrade to GNU Make 4

CentOS 7 erlang.mk:30: Please upgrade to GNU Make 4

erlang.mk:30: Please upgrade to GNU Make 4 

在用erlang.mk構建專案的時候報這個錯,提示不贊成使用Make 3.81 and 3.82版本

下載最新版本的Make:http://ftp.gnu.org/gnu/make/

我這裡下載的是4.2版本:make-4.2.tar.gz
解壓安裝

[root@192 bin]#  tar -zxvf make-4.2.tar.gz
[root@192 bin]#  cd make-4.2
[root@192 bin]#  ./configure
[root@192 bin]#  make && make install

   ##需要root許可權

[root@192 bin]#  which make
/usr/bin/make
[root@192 bin]#  cd /usr/bin
[root@192 bin]#  mv make make_bak
[root@192 bin]#  ln -s /usr/local/bin/make ./make

[root@192 bin]# make -v

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 ext