Andrei Andrushkevich
Andrei Andrushkevich

Reputation: 9983

RVM problem with default ruby version

when i execute following command

$ rvm --default use 1.9.2
$ ruby -v

i got following result:

ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]

i can't understand why is not

ruby 1.9.2p0...

Upvotes: 2

Views: 641

Answers (5)

electra
electra

Reputation: 36

Maybe you should to try

rvm reload

or try to type

 rvm info

hope that will help you

Upvotes: 1

c2h2
c2h2

Reputation: 12369

If u installed correctly, most likely its is path problem.

Solution 1: Manually add the ruby1.9.2.p0 path into ur $PATH

Solution 2: Try run:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

Upvotes: 5

Josh Kovach
Josh Kovach

Reputation: 7749

You can try running which ruby to see where your ruby is running from. If you've set up your rvm correctly and followed all the steps, it should look something like /home/username/.rvm/rubies/ruby-1.9.2-p136/bin/ruby. Also, make sure you added the line to your .bashrc file as specified in rvm-install notes.

I've found this rvm setup tutorial to work flawlessly on several different machines: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you, including Ubuntu, Fedora, and even on a Mac (with a few adjustments).

Upvotes: 0

the Tin Man
the Tin Man

Reputation: 160631

Type rvm info.

All paths should reflect rvm's installation in your home directory.

If not, odds are good you didn't follow the "Post Install" directions for rvm, and need to go through them, and the troubleshooting section that follows it.

Upvotes: 1

m_sc
m_sc

Reputation: 154

Maybe you should invoke

rvm reload

or try to open up a new shell and then again

ruby -v

hope that works for you...

Upvotes: 0

Related Questions