1

I started installing Homebrew on my Mac Lion v10.7.4 but got the following error.

==> Downloading and Installing Homebrew...
Failed during: Error: /usr/bin/xcode-select returned unexpected error. init -q

I ran the following command as mentioned on Homebrew website:

ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"

I tried to search for solutions for this error but nothing relevant came up. How can this be fixed?

Thanks.

  • 1
    Have you installed Xcode command line tools? – user151019 Jan 10 '13 at 12:20
  • @Mark No, I don't have it installed. Homebrew homepage didn't mention it on the homepage and I assumed that it wouldn't need any additional package to work. Just looked up Homebrew wiki and it indeed says that Xcode command line tool is required. Thank you very much! Downloading it right now and will report back after trying it. – vivekagr Jan 10 '13 at 12:40
  • @Mark Installing Xcode command line tools solved the problem. Thank you again. Though not sure how to mark your comment as the correct answer. – vivekagr Jan 10 '13 at 13:12
1

Check that you have the Xcode command line tools installed. See Homebrew installation page.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .