linux centos upgrade make 4.2

Recently, I encountered a problem when installing rabbitmq-server-3.7.25. The version of make cannot be used. The default is 3.82, which does not meet the minimum requirements of make 4.0. So you need to upgrade manually. The specific process is as follows

cd / usr / local / src / 
wget http://ftp.gnu.org/gnu/make/make-4.2.tar.gz 
tar xf make-4.2.tar.gz 
cd make-4.2 / 
./configure 
make 
make install 
make -v 
# Make at this time is still 3.82 related to environment variables 
/ usr / local / bin / make -v 
# This is the make we just installed and its version is 4.2 
whereis make 
# Find out which make 
cd / usr / bin / 
mv make make.bak 
# Rename the default make 
ln -sv / usr / local / bin / make / usr / bin / make 
# Create a soft connection 
make -v 
# See you are done

  

 

Guess you like

Origin www.cnblogs.com/xzlive/p/12705273.html