# How to set my default ruby back to 1.8 version after install ruby 1.9?

**URL:** <https://rubytalk.org/t/how-to-set-my-default-ruby-back-to-1-8-version-after-install-ruby-1-9/52475>\
**Category:** ruby-talk\
**Created:** [24 March 2009 09:52 UTC](https://rubytalk.org/t/how-to-set-my-default-ruby-back-to-1-8-version-after-install-ruby-1-9/52475 "2009-03-24T09:52:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harry](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@Harry](https://rubytalk.org/u/Harry)\
**Post date:** [24 March 2009 09:52 UTC](https://rubytalk.org/t/how-to-set-my-default-ruby-back-to-1-8-version-after-install-ruby-1-9/52475/1 "2009-03-24T09:52:07Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Rafael\_Crivellari\_Sa](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@Rafael\_Crivellari\_Sa](https://rubytalk.org/u/Rafael_Crivellari_Sa)\
**Post date:** [24 March 2009 10:07 UTC](https://rubytalk.org/t/how-to-set-my-default-ruby-back-to-1-8-version-after-install-ruby-1-9/52475/2 "2009-03-24T10:07:11Z")

</div>

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  
> schouery@gmail.com
> 
> Autor do VidaGeek.net: [http://vidageek.net](http://vidageek.net)  
> RSS: [http://feeds.feedburner.com/VidaGeek](http://feeds.feedburner.com/VidaGeek)  
> Twitter: [http://twitter.com/blogvidageek](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!

---

<div class="post-metadata">

**Author:** ![Harry](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@Harry](https://rubytalk.org/u/Harry)\
**Post date:** [24 March 2009 22:06 UTC](https://rubytalk.org/t/how-to-set-my-default-ruby-back-to-1-8-version-after-install-ruby-1-9/52475/3 "2009-03-24T22:06:52Z")

</div>

thanks for the clue !

> **···**
>
> On Mar 24, 9:07 pm, Rafael Crivellari Saliba Schouery \<schou...@gmail.com\> 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  
> > schou...@gmail.com
> > 
> > Autor do VidaGeek.net:[http://vidageek.net](http://vidageek.net)  
> > RSS: [VidaGeek.net](http://feeds.feedburner.com/VidaGeek)  
> > Twitter: [http://twitter.com/blogvidageek](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!
