Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Can't install Homebrew on Mac OS X 10.9.2
So, apparently, command line tools was combined into Xcode on Mavericks, which is why I think I'm having issues installing Homebrew.
Here's the steps to reproduce the error:
- Enter the following command into the terminal:
Paste code into terminal: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Receive the following in return: ==> This script will install: /usr/local/bin/brew /usr/local/Library/... /usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
I hit Return
After hitting return, I receive this message:
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew Password:
I enter my Root Password, which was recommended here on the forums.
I receive this message after entering root password;
Password: Sorry, try again.
- I then enter my normal password and receive this error:
Installing the Command Line Tools (expect a GUI popup): ==> /usr/bin/sudo /usr/bin/xcode-select --install Usage: xcode-select -print-path or: xcode-select -switch <xcode_folder_path> or: xcode-select -version Arguments: -print-path Prints the path of the current Xcode folder -switch <xcode_folder_path> Sets the path for the current Xcode folder -version Prints xcode-select version information Failed during: /usr/bin/sudo /usr/bin/xcode-select --install
I'm not sure what's going on here. Any help would be much appreciated.
Thomas Coler8,068 Points
Open up the Xcode Application and go to Preferences. Under Locations, select command line tools and select the newest version and it will prompt you to enter your password. Close Xcode and then go ahead with your HomeBrew install. This worked for me.
You do need to enter the admin password to install. Are you sure you entered it correctly? I believe the install is failing because it accepted the 'normal' password, which does not allow for installation.
Yeah, I changed my root password again, just to make sure I was using the right one, and it did not accept the new root password, either.