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

Discussion in 'Ruby' started by Harry, Mar 24, 2009.

  1. Harry

    Harry Guest

    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!
     
    Harry, Mar 24, 2009
    #1
    1. Advertising

  2. Re: How to set my default ruby back to 1.8 version after install ruby 1.9?

    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


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

    On 24/03/2009, at 06:52, Harry wrote:

    > 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!
    >
     
    Rafael Crivellari Saliba Schouery, Mar 24, 2009
    #2
    1. Advertising

  3. Harry

    Harry Guest

    On Mar 24, 9:07 pm, Rafael Crivellari Saliba Schouery
    <> wrote:
    > 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
    >
    >
    > Autor do VidaGeek.net:http://vidageek.net
    > RSS:      http://feeds.feedburner.com/VidaGeek
    > Twitter:  http://twitter.com/blogvidageek
    >
    > On 24/03/2009, at 06:52, Harry wrote:
    >
    > > 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 !
     
    Harry, Mar 24, 2009
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. V Green
    Replies:
    0
    Views:
    862
    V Green
    Feb 5, 2008
  2. PA Bear [MS MVP]
    Replies:
    0
    Views:
    972
    PA Bear [MS MVP]
    Feb 5, 2008
  3. chaoqun
    Replies:
    7
    Views:
    145
    chaoqun
    Feb 18, 2008
  4. Iñaki Baz Castillo
    Replies:
    14
    Views:
    252
    Iñaki Baz Castillo
    Apr 5, 2009
  5. Iñaki Baz Castillo
    Replies:
    7
    Views:
    650
    Rick DeNatale
    Dec 3, 2009
Loading...

Share This Page