3

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 ページで見つけた別のインストール方法 (「どこでも Untar」) で解決しました。

私が実行したもの:mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew

4

2 に答える 2

3

/bin/bash^Mあなたの手がかりです。何らかの理由で、ダウンロード中のファイルに DOS の行末文字が含まれています。これはおそらく式のエラーですが、冒険好きなら、問題のフォルダーでbrew install dos2unix実行できます。dos2unix

于 2013-02-05T06:36:40.317 に答える
1

Unix/Linux/Mac OS X で Windows スタイルの行末を使用しています。以前に Git の core.autocrlf 属性を変更したことがある場合は、次を試してください。

git config --global core.autocrlf input

次に、Homebrew を再インストールします。

于 2014-02-21T07:09:28.757 に答える