Install ruby 1.9.3 on Mac

I would like to upgrade my actual ruby version 1.8.7 installed on my Mac
to 1.9.3 or 1.9.2
I read lots of things searching on google I found information at
https://rvm.io/rvm/install

Then I tried the upgrade as follow:

source ~/.rvm/scripts/rvm

rvm list known

rvm install 1.9.3

which ruby

ruby -v

I even add the command rvm use 1.9.3 --default

That sound work untill I close the terminal and reopen it again. When I
reopened the terminal, the ruby version 1.9.3 was no longer available,
only the old version. Worse of all, even the RVM command is not
recognized.
I am a Biologist that has fun to code in Ruby. Could you guys help me to
fix it in a very straight forward way?
Thanks in advance

···

--
Posted via http://www.ruby-forum.com/.

Good morning man!

I think that I can help you. As I can see the problem is the ruby 1.9 of
rvm be continuous on your PATH. Make sure that your file ~/.bash_profile have
the RVM line to the PATH, something like "PATH=$PATH:$HOME/.rvm/bin" in
final of the file. Good luck.

···

2012/5/4 Amidou NDIAYE <lists@ruby-forum.com>

I would like to upgrade my actual ruby version 1.8.7 installed on my Mac
to 1.9.3 or 1.9.2
I read lots of things searching on google I found information at
RVM: Ruby Version Manager - Installing RVM

Then I tried the upgrade as follow:

source ~/.rvm/scripts/rvm

rvm list known

rvm install 1.9.3

which ruby

ruby -v

I even add the command rvm use 1.9.3 --default

That sound work untill I close the terminal and reopen it again. When I
reopened the terminal, the ruby version 1.9.3 was no longer available,
only the old version. Worse of all, even the RVM command is not
recognized.
I am a Biologist that has fun to code in Ruby. Could you guys help me to
fix it in a very straight forward way?
Thanks in advance

--
Posted via http://www.ruby-forum.com/\.

Just add the line:

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

to the tail of your ~/.bash_profile

& open a new Terminal window & you'll be good to go.

Cheers,

  Phil...

- --
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

  Wm. Shakespeare - Much Ado About Nothing

···

On 04/05/2012 15:34, Amidou NDIAYE wrote:

I would like to upgrade my actual ruby version 1.8.7 installed on my Mac
to 1.9.3 or 1.9.2
I read lots of things searching on google I found information at
RVM: Ruby Version Manager - Installing RVM

Then I tried the upgrade as follow:

source ~/.rvm/scripts/rvm

rvm list known

rvm install 1.9.3

which ruby

ruby -v

I even add the command rvm use 1.9.3 --default

That sound work untill I close the terminal and reopen it again. When I
reopened the terminal, the ruby version 1.9.3 was no longer available,
only the old version. Worse of all, even the RVM command is not
recognized.
I am a Biologist that has fun to code in Ruby. Could you guys help me to
fix it in a very straight forward way?

If you don't need to use multiple versions of ruby, don't use rvm, just install ruby from the source archive. It will save you a lot of heart ache in the future.

Henry