# Using multiple Ruby versions

**URL:** <https://www.ruby-forum.com/t/using-multiple-ruby-versions/120101>\
**Category:** Rails\
**Created:** [November 13, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/using-multiple-ruby-versions/120101 "2007-11-13T19:42:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric99](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a88e4f/32.png) [@eric99](https://www.ruby-forum.com/u/eric99)\
**Post date:** [November 13, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/using-multiple-ruby-versions/120101/1 "2007-11-13T19:42:08Z")

</div>

Is there a way to setup multiple versions of Ruby to use with  
different projects like we can with the version of Rails? On my dev  
machine I have Ruby 1.8.6 with Rails 1.2.3, which works fine. But one  
of my projects uses Rails 1.2.2, which turns out to have problem with  
Ruby 1.8.6. Instead, Ruby 1.8.5 is required. Is there a way to have  
both versions of Ruby installed, and specify which one a project uses?

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![eric99](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a88e4f/32.png) [@eric99](https://www.ruby-forum.com/u/eric99)\
**Post date:** [November 15, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/using-multiple-ruby-versions/120101/2 "2007-11-15T16:39:21Z")

</div>

I wrote a blog entry last night on using multiple versions of Ruby:  
[http://www.dcmanges.com/blog/install-multiple-versions-of-ruby-on-osx-leopard](http://www.dcmanges.com/blog/install-multiple-versions-of-ruby-on-osx-leopard)

I don’t know how to easily specify which version a project should use  
and have it automatically switch though.

Dan
