How to set my default ruby back to 1.8 version after install ruby1.9?

H

Harry

Hi ,this might be a newbie question and I don't know if it's the right
place to ask here:
I use opensuse11.1 and it has it's ruby1.8.7 rpm installed , later I
tried to compiled a ruby 1.9 on the machine.now when I type :
ruby -v
It shows
ruby 1.9.1p0 (2009-01-30 revision 21907) [x86_64-linux]

then all of my gem installed under ruby 1.8.7 lost. since I just want
to try 1.9 and some gem will have problem under 1.9 .so I want to set
the default ruby still be the ruby1.8.7 . how could I do that ?

my ruby1.8.7 has the path :/usr/bin/ruby
ruby 1.9 has the path : /usr/local/bin/ruby

thank you guys!
 
H

Harry

If you change your PATH variable to start with /usr/bin and after
that you put /usr/local/bin, then I think you will be able to use Ruby  
1.8.
Bye!

---
Rafael Crivellari Saliba Schouery
(e-mail address removed)

Autor do VidaGeek.net:http://vidageek.net
RSS:      http://feeds.feedburner.com/VidaGeek
Twitter:  http://twitter.com/blogvidageek

Hi ,this might be a newbie question and I don't know if it's the right
place to ask here:
I use opensuse11.1 and it has it's ruby1.8.7 rpm installed , later I
tried to compiled a ruby 1.9 on the machine.now when I type :
ruby -v
It shows
ruby 1.9.1p0 (2009-01-30 revision 21907) [x86_64-linux]
then all of my gem installed under ruby 1.8.7 lost. since I just want
to try 1.9 and some gem will have problem under 1.9 .so I want to set
the default ruby still be the ruby1.8.7 . how could I do that ?
my ruby1.8.7 has the path :/usr/bin/ruby
ruby 1.9 has the path : /usr/local/bin/ruby
thank you guys!

thanks for the clue !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top