How to install BSD on Mac (while saving GNU make)?

I have two questions regarding makeon my Mac: one regarding the installation of the second fragrance make, the second regarding how to manage the two options.

  • I need to install BSD makeon my Mac, but I do not want to remove GNU make, which is standard for Mac; Berkeley - for a special project. Despite the extensive resources for installing BSD, I could not figure out where to get it and how to install this single program. What is the best way to do this?

  • I think I need to put it in /usr/local/bin, and GNU make, which was provided by the Mac OS developer tools, will remain where it is in /bin. Then I can control that make is invoked with an alias. I'm still new to * nix; Is this a smart strategy or is there a better way?

+5
source share
2 answers

Install BSD make

If you haven’t already /usr/bin/bsdmake(apparently it was used with OS X / Xcode, but it no longer works), install Homebrew , then:

brew install bsdmake

GNU cohabitation

GNU make, Homebrew BSD bsdmake. bsdmake all. , , , BSD make bsdmake, make.

BSD , Homebrew , :

brew uninstall bsdmake
+4

macports, bsdmake bmake. /opt/local/bin ( $PATH ~/.profile, ).

0

All Articles