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! While you're at it, check out some resources Treehouse students have shared here.
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 trialJordan Anderson
19,560 PointsHome brew install help
Hello,
I have been trying to get through the install ruby course. But keep running into an error. I have the osx/gcc, git, and ruvy installed arleady from other courses.
I run the: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
error is : "Failed during: /usr/bin/sudo /usr/bin/xcode=select --install"
or
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
error is: curl: (22) The requested URL returned error: 400 Bad Request
Any help is greatly appreciated! This has me stopped in my tracks.
3 Answers
Stone Preston
42,016 Pointsit looks like its trying to install the xcode command line tools. try installing the xcode command line tools yourself by running the following command in a terminal window
xcode-select --install
and follow the onscreen prompts
then after the install is complete run curl command again
Jordan Anderson
19,560 PointsHey Preston,
Thank you for responding.
I ran the xcode-select --install. This is what results:
Usage: xcode-select -print-path or: xcode-select -switch or: xcode-select -version Arguments: -print-path Prints the path of the current Xcode folder -switch Sets the path for the current Xcode folder -version Prints xcode-select version information
Am I suppose to use one of the arguments to change something? I ran the curl command again after and still received the same error.
Thanks again,
Jordan A.
Jordan Anderson
19,560 PointsThe xcode-select --install does not work. I have tried reinstalling xcode, reinstalled the command line tools from developer site. Reran the curl script, but I still receive "Failed during: /usr/bin/sudo /usr/bin/xcode-select --install" when I attempt to run the curl script.
I've been trying to work past this for over a week now.
Any more advice/hints would be greatly appreciated.