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 Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Mac

11,940 Points

Updated to the newest version of Ruby, but typing ruby -v returns the old version. Do I actually have the new version?

The installation of Ruby 2.1.2 went fine, no errors. But as the title says, when checking to see if Ruby 2.1.2 is actually installed, ruby -v returns 2.0.0p451.

So I assume something went wrong, but what exactly is it, and how do I fix it?


2 Answers

Nicholas Vandenbroeck
Nicholas Vandenbroeck
4,599 Points

You should use the following command in terminal:

rvm --default use 2.1.2

You can have multiple versions of ruby installed at the same time. Now it uses default version 2.0.0. You can read this blog post for more information: http://rvm.io/rubies/default

Michael Kuntz
Michael Kuntz
5,815 Points

I had to close and reopen terminal to see the new version.