Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
869 views
in Technique[技术] by (71.8m points)

terminal - How do I add use the make installed using homebrew instead of the macOS included make?

I want to use the newer version of it (4.3) that I installed with homebrew, but my mac has 3.81 installed already and I can't remove it.

question from:https://stackoverflow.com/questions/65943082/how-do-i-add-use-the-make-installed-using-homebrew-instead-of-the-macos-included

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Read the homebrew description of GNU make:

GNU "make" has been installed as "gmake". If you need to use it as "make", you can add a "gnubin" directory to your PATH from your bashrc like:

PATH="$(brew --prefix)/opt/make/libexec/gnubin:$PATH"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...