Linux 升級make (gmake)

升級 Make (gmake)

下載列表 https://ftp.gnu.org/gnu/make

選擇需要的make安裝的包,這裏用截止到20190827 的4.2 版本

wget https://ftp.gnu.org/gnu/make/make-4.2.tar.gz
tar -zxf make-4.2.tar.gz
cd make-4.2
./configure --prefix=$HOME/local
make 
make install

可以在 ~/.bash_profile 里加上 PATH=$HOME/local/bin:$PATH

然後把 make 軟連接到 bin 或者把 local/bin 添加到環境變量

gmake其實就是 make , ln -s $HOME/local/bin/make $HOME/local/bin/gmake

source ~/.bash_profile
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.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章