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

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.