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

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.