在 macOS 上更新 GNU make

2024-05-08

我从下载了 GNU make 4.2.1here http://ftp.gnu.org/gnu/make/(make-4.2.1.tar.gz) 并按照展开文件夹中的 INSTALL 文件中的说明安装它。 现在我跑make -v在 shell 中,我仍然发现系统看到的是旧版本:

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

有什么建议吗?
我正在 macOS 10.12.3 机器上工作。
提前致谢。


改变内容的做法是不好的做法/usr/bin。最好的方法是拥有/usr/local/bin before /usr/bin在你的路径中。将以下内容添加到您的~/.bashrc :

[[ "$PATH" = */usr/local/bin* ]] || PATH="/usr/local/bin:$PATH"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 macOS 上更新 GNU make 的相关文章

随机推荐