Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Ruby Foundations Ruby Basics Installing Ruby

Michael Kuntz
Michael Kuntz
5,815 Points

No OSX-GCC-Installer for 10.9 ..Also, in the installing ruby environment videos, we used rbenv to install ruby/rails.

There is no OSX-GCC-Installer for OSX 10.9. In addition, I've already installed ruby using rbenv in an earlier video. I'm not sure what to do from this point?

Michael Kuntz
Michael Kuntz
5,815 Points

I did some reading, and it looks like rbenv and rvm are two different ways of accomplishing the same thing. Also, rbenv seems to be better from a few reviews I've read. I guess I'll just stick with this and ignore the rvm stuff. Or am I mistaken?

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

Michael Kuntz was any of the below answers helpful? If so, please indicate that by selecting one of them as Best Answer. If not, please elaborate more so that we could assist you further.

3 Answers

Michael Kuntz
Michael Kuntz
5,815 Points

Like I said before, I already installed rbenv in an earlier video and from what I read, rbenv is better than RVM.. so I just stuck with the rbenv that was installed fine in the previous video. The problem was I couldn't install RVM but it didn't matter, cause I already had rbenv. The videos don't tell you not to worry about installing rvm if you already have rbenv. Just confusing that's all.

Michael Hulet
Michael Hulet
47,843 Points

Ruby comes preinstalled on OS X, and you can get GCC or LLVM or a similar compiler by downloading Xcode from the Mac App Store

John O.
John O.
4,680 Points

If you want to use Rbenv on OS X you'll need to install the Xcode command-line tools:

$xcode-select --install

Then install Home Brew:

$ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Complete Home Brew setup:

$brew doctor
$brew update

At this point you'll be able to install rbenv and ruby-build:

$brew install rbenv ruby-build

Add the following to your .bash_profile:

eval "$(rbenv init -)"

Reload your bash profile settings:

$source ~/.bash_profile

Then you can install Ruby:

$rbenv install 2.1.2