I’m attempting to install Homebrew, but I’m running into some issues. I listed 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 MacPorts beforehand and brew doctor works without a hitch.
Solved: I settled with an alternate installation method (“Untar anywhere”) 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
/bin/bash^Mis your clue. For some reason there’s a DOS line-end character in what’s being downloaded. This is probably an error in the formula, but if you’re adventurous, you canbrew install dos2unixand then rundos2unixon the folder in question.