【发布时间】:2013-02-05 06:32:27
【问题描述】:
我正在尝试安装Homebrew,但遇到了一些问题。我在下面列出了结果。我该如何解决这个问题?
$ ~ $ brew install wget
==> Downloading http://ftpmirror.gnu.org/wget/wget-1.14.tar.gz
Already downloaded: /Library/Caches/Homebrew/wget-1.14.tar.gz
==> ./configure --prefix=/usr/local/Cellar/wget/1.14 --sysconfdir=/usr/local/etc --with-ssl=openssl --disable-iri
checking whether make sets $(MAKE)... ./configure: /usr/local/Library/ENV/4.3/sed:/bin/bash^M: bad interpreter: No such file or directory
no
configure: error: cannot run /bin/sh build-aux/config.sub
./configure: /usr/local/Library/ENV/4.3/sed: /bin/bash^M: bad interpreter: No such file or directory
./configure: /usr/local/Library/ENV/4.3/sed: /bin/bash^M: bad interpreter: No such file or directory
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
注意:我事先卸载了 MacPorts,brew doctor 可以顺利运行。
已解决:我使用在Homebrew wiki page 上找到的替代安装方法(“Untar Anywhere”)解决了问题。
我跑的是:mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
【问题讨论】:
-
可能是一个红鲱鱼:但检查公式文件:它提到了可能发生的配置错误,具体取决于您的
awk安装。
标签: ruby macos installation homebrew