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 Ruby Operators and Control Structures Ruby Operators Ruby Assignment Operators

kabir k
PLUS
kabir k
Courses Plus Student 18,036 Points

Installing Ruby on your computer

I'm curious as to how you install Ruby on your computer and how to confirm that it has been installed.

Assuming you are on a Mac.

amathiaitishar
amathiaitishar
13,229 Points

or you could head over to http://installrails.com/ and click on Start and choose your Operating System and follow the crystal clear instructions.

1 Answer

uxeric
uxeric
6,263 Points

Ruby comes pre-installed on MacOSX. To confirm it's installation, open the terminal by hitting cmd+space, type terminal, and hit return. Once you have the terminal up, type in ruby --version. If ruby is installed, a message similar to this one should appear: ruby 1.9.3p484 (2013-11-22 revision 43786).

If you don't have it for some reason, I would recommend installing it through the brew package manager here. Once brew is installed you can run the brew install ruby command to install ruby. Then verify that it was properly installed by following the previous instructions.

Edit: Updated formatting.

uxeric
uxeric
6,263 Points

Forgive me, I had issues with formatting my answer. The first thing you need to press is cmd+space. I've updated the formatting in my original answer. Hopefully that clears things up. :)

uxeric
uxeric
6,263 Points

You're welcome Kabir. Best of luck getting through the course.