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


Andrew Lee
Andrew Lee
14,448 Points

Installing ruby 1.9.3 on OS X 10.9

I am trying to install ruby 1.9.3 but I am getting an error

current path: /Users/andyrewlee/workspace
command(2): requirements_osx_brew_libs_install gcc46
Error: No such keg: /usr/local/Cellar/gcc46
Warning: A newer Command Line Tools release is available
Update them from Software Update in the App Store.
Warning: You seem to have osx-gcc-installer installed.
Homebrew doesn't support osx-gcc-installer. It causes many builds to fail and
is an unlicensed distribution of really old Xcode files.
Please run `xcode-select --install` to install the CLT.
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.6.4/gcc-4.6.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc46-4.6.4.tar.bz2
==> ../configure --build=x86_64-apple-darwin13.0.0 --prefix=/usr/local/Cellar/gcc46/4.6.4 --enable-languages=c,c++,objc,obj-c++ --program-suffix=-4.6 --wit$
==> make bootstrap
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 

when i typed 'rvm requirements' the error happened again saying

Error running 'requirements_osx_brew_libs_install gcc46

2 Answers

James Barnett
James Barnett
39,199 Points

Check out this step-by-step tutorial on installing Ruby on Rails under OS X Mavericks

You can skip the section on installing MySQL if you want as it's not used in the Treehouse course.

If you have issues let me know which steps you completed successfully and at which point you got stuck.

Side note: If you are new to the terminal you'll probably want to do the Console Foundations course before taking on Ruby on Rails.

Hey James. Thanks for this tutorial, however, in step 1, after typing in "xcode-select --install," I don't receive an install prompt. This is the message I receive instead:

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

I'm confused as to what I should enter into the terminal at that point.