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

Sarah Ockuly
Sarah Ockuly
1,720 Points

Major noob question, how can I check if Ruby is already installed and open it?

I have a Macbook with Mac OS X 10.7.5, so I am under the impression that it shipped with Ruby already installed. How do I find it and open it up to be begin working?

Thanks!

4 Answers

Lee Hughes
Lee Hughes
8,380 Points

Open terminal and type ruby -v

This should tell you the latest version of Ruby. (if installed)

You can do the same for Ruby on Rails = rails -v

Once you know what version of ruby you have, install rails and off you go :)

Enjoy

I believe it shipped with Ruby 1.8.7 which won't work with the ruby tutorials. I suggest watching the mac installation video to get 1.9.3 or 2.0.0

Sarah Ockuly
Sarah Ockuly
1,720 Points

Thanks for the help, guys!

Patrick Cooney
Patrick Cooney
12,216 Points

Idk if it's mentioned in the install video-- I would assume it is --but I would recommend downloading RVM it's the easiest way to manage rubies and gems. If you're not that comfortable with the command-line yet, check out JewelryBox app. Not only will it manage all your gems and rubies once RVM is installed, it can actually install RVM for you too!

It is. I use linux and RVM is essential. The only time I dont use RVM is with Apache CGI scripts and that's just because I'm lazy.

Sarah Ockuly
Sarah Ockuly
1,720 Points

Thanks, I'll check out Jewelry Box.