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 trialLauren Clark
33,155 PointsCan't upgrade Ruby to 2.1.2
I'm trying to get the latest Ruby version on OSX. Using rbenv I've done the following:
rbenv install 2.1.2 rbenv global 2.1.2 And then rbenv rehash and open a new terminal...
I'm still stuck on the old version when I hit ruby -v!
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
Why is this? I've been messing about loads with Ruby, I installed RVN a while back but had little to no idea what I was doing. I use a lot of Ruby gems for Sass, Compass, Bourbon etc. I've also got node installed and Homebrew. So I think something is messing it up.
I always have to Sudo when updating gems or changing Ruby and I heard this wasn't supposed to be the norm.
:( I just want to play with Ruby...
2 Answers
Lauren Clark
33,155 PointsSolved it myself.
Needed to fully remove RVM with
sudo rm -rf ~/.rvm
and then check my .bash_profile and .zshrc settings and remove any references to RVM in my $PATH
Now when I ruby -v I'm all up to date!
Geo Alvarenga
4,045 Pointsbtw you would probably do best by just doing 'rvm implode' which i believe removes any other rvm artifacts that could be lingering around.