我试图安装Homebrew,但我遇到了一些问题。我列出了下面的结果。我该如何解决这个问题?在OS X上安装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安装。 – andrewdotnich