Update the path of the mac.

Asked 2 years ago, Updated 2 years ago, 124 views

brew install make

I installed GNU make in .

 which make
/usr/local/bin/make

and
/usr/local/bin/make --version

GNU Make 4.2.1
Yes, but

make --version


GNU Make 3.81 It will be

echo$PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:

So the path should have passed.

How can I increase the priority over the command that came with the mac?

macos homebrew makefile

2022-09-30 21:32

1 Answers

The make installed in brew is named gmake to prevent conflicts with the macOS bundled ones.
Use gmake to use what you have installed.


2022-09-30 21:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.