I am trying to upgrade gnu make version to 4.1 on my mac, but I couldn't install successfully. Here are what I did so far:
1. install xcode v8.2.1
2. manually upgrade gnu make with the following commands.
# Download gnu make-4.1.tar.gz from gnu website.
./configure
make
sudo make install
This doesn't make my make
version to v4.1 when I type make --version
on my terminal.
3. Running xcode-select --install
on command line didn't solve the problem either.
My system info:
$ sw_vers -productVersion
$ v10.12.4
$ cmake --version
$ v3.10.0
$ make --version
$ 3.81
Thanks.
If you put the path where make install installs before the path where the old make is found it will use the newer make.
If the old one lives in /opt/xcode/bin
and make install installs to /usr/local/bin
, then make sure /usr/local/bin
comes before /opt/xcode/bin
in your PATH variable.
PATH=/usr/local/bin:/opt/xcode/bin