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 trial

Ruby Ruby Foundations Ruby Basics Installing Ruby

Michael Cai
Michael Cai
1,223 Points

Homebrew won't install

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> 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

That block of text comes up when I try to install homebrew. help?

2 Answers

Stone Preston
Stone Preston
42,016 Points

do you have xcode installed? you probably need to install Xcode first from the mac app store if you dont since you need it to install the command line tools

Kang-Kyu Lee
Kang-Kyu Lee
52,045 Points

By the way, I googled this link. It says basically you can type gcc and that's it :0