本文介绍了如何在Mac OS上安装较新版本的make?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

Mac OS随附make版本3.81,我希望在某些项目中使用较新的版本(>=4.0).

Mac OS comes with make version 3.81 and I want a newer version (>=4.0) for use on some projects.

如何安装新版本,最好使用brew?

How can I install a newer version, preferably using brew?

这与 GNU Make --output-sync不起作用?

That's related to GNU Make --output-sync doesn't work? as I want to use some feature output sync on parallel builds.

推荐答案

brew在homebrew/dupes抽头中附带了make. brew install homebrew/dupes/make在路径中放入gmake二进制文件,以避免与macOS上的默认make版本冲突.

brew ships a make in the homebrew/dupes tap. brew install homebrew/dupes/make puts a gmake binary in the PATH to avoid clashes with the default make version on macOS.

选项--with-default-names将作为make安装,因此会遮盖默认版本.

The option --with-default-names will install as make and thus shadow the default version.

有关更多详细信息,请参见brew info homebrew/dupes/make.

See brew info homebrew/dupes/make for more details.

homebrew/dupes/make: stable 4.2.1 (bottled)
Utility for directing compilation
https://www.gnu.org/software/make/
/usr/local/Cellar/make/4.2.1 (12 files, 957.3K) *
  Poured from bottle on 2016-08-11 at 20:18:41
From: https://github.com/Homebrew/homebrew-dupes/blob/master/make.rb
==> Dependencies
Optional: guile ✘
==> Options
--with-default-names
        Do not prepend 'g' to the binary
--with-guile
        Build with guile support

这篇关于如何在Mac OS上安装较新版本的make?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 10:03