Error installing Homebrew on OS X

I'm trying to install Homebrew , but I'm having some problems. I have given the result below. How can I fix this problem?

$ ~ $ 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

      

Note. I uninstalled MacPort beforehand and it brew doctor

works fine .

Resolved . I installed an alternative installation method ("Untar any") that I found on the Homebrew wiki page .

What I ran: mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew

+3


source to share


2 answers


/bin/bash^M

is your key. For some reason, there is a DOS end-of-line character in what boots. This is probably a bug in the formula, but if you're adventurous you can brew install dos2unix

and then run dos2unix

in the appropriate folder.



+3


source


You are using the Windows end at the end of the line on Unix / Linux / Mac OS X. If you changed your Git core.autocrlf attribute earlier, try:

git config --global core.autocrlf input

      



Then reinstall Homebrew.

+1


source







All Articles