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 trialKelvin Knighton
6,168 Pointsinstalling ruby on linux
this version of ruby has been hunting me, 1.9.3p484: first i had rbenv but i did alot of stuff with that included installing 2.1.2 and i put ruby -v and 1.9.3 pops up, i dealt with that all day yesterday and alot today, just 30 mins ago i unstalled rbenv and install rvm and install 2.1.2 and still 1.9.3p484 pops up, i would really be thankful for any advice you could give me on this
3 Answers
Ethan Lowry
Courses Plus Student 7,323 PointsIt sounds like your 1.9.3 install might be in front of your rbenv / rvm Rubies in your system PATH - this would cause the system to always use the first Ruby command it finds in the path. Try running the following in your command line and see if there are multiple different Ruby installations or references to RVM etc, and swap their order if necessary.
echo $PATH
To make permanent changes to your PATH, its best to look up how to do so for your operating system - it's usually a simple matter of adding or modifying a line to a hidden file in your home directory.
Hope that helps.
Kelvin Knighton
6,168 Points/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games :/home/padawancoder/.rvm/bin:/home/padawancoder/.rvm/bin
Artem Prytkov
11,932 PointsI suggest to read rvm cheatsheet, like this http://cheat.errtheblog.com/s/rvm
In your case you want to execute
rvm list known
rvm install 2.1 (or any other ruby from list)
rvm use --default 2.1 (it will remember to use 2.1 in future)
Kelvin Knighton
6,168 PointsI'm currently reading the cheatsheet, but the rvm use --default is still giving me a bit of trouble, but there are alot of goodies on the sheet,thx for sharing ;)
Kelvin Knighton
6,168 Pointsi fixed it guys, with some help of a fellow from twitter, i had to go in the terminal in ubuntu and settings and do the title and command and run command as a login shell [ i had to check that box ] after that it worked like a charm.
Kelvin Knighton
6,168 PointsKelvin Knighton
6,168 PointsI'm doing this on ubuntu version 14.04 LTS - OS type 64-bit
[ by the way i had success doing this on my macbook- just a few months ago on OS x mavericks ]