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


Gareth Redfern
Gareth Redfern
36,217 Points

Help Installing Ruby

I have been putting off learning ruby because of how difficult it seems to be to install all the different dependencies. It would be brilliant if you could just run one thing and it installed what you need. Anyway I'm giving it a go as per the ruby lesson so far I have installed.

  • xcode
  • command line tools for xcode
  • homebrew
  • rvm

I now get the following error:

You requested building with '/usr/bin/gcc-4.2' but it is not in your path.

Now I made sure to add export CC=/usr/bin/gcc-4.2 in my bash_profile above the [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM$ line of code which was automatically saved for me.

Is this lesson out of date or what am I doing wrong?

Thanks for any help.

1 Answer

Nicholas Lee
Nicholas Lee
12,474 Points

I am in the same boat. I was on a roll with teamtreehouse now I have not coded in a week because of the ruby installation process.