# Change location of Ruby installation

**URL:** <https://www.ruby-forum.com/t/change-location-of-ruby-installation/104937>\
**Category:** Rails\
**Created:** [May 24, 2007, 2:43am UTC](https://www.ruby-forum.com/t/change-location-of-ruby-installation/104937 "2007-05-24T02:43:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanstewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Post date:** [May 24, 2007, 2:43am UTC](https://www.ruby-forum.com/t/change-location-of-ruby-installation/104937/1 "2007-05-24T02:43:39Z")

</div>

My local ruby installation is located in /usr/local/bin/ruby and my  
server’s installation is located in /usr/bin/ruby. It is a pain  
changing the location in dispatch.fcgi, dispatch.cgi, and dispatch.rb  
so I figure the best plan is to move my local installation to /usr/bin/  
ruby. Is this possible? Is there any easier way to make these changes?

---

<div class="post-metadata">

**Author:** ![seanstewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Post date:** [May 24, 2007, 4:06am UTC](https://www.ruby-forum.com/t/change-location-of-ruby-installation/104937/2 "2007-05-24T04:06:44Z")

</div>

if you have /usr/bin/env lying around you could change the dispatch  
files to call that instead:

#!/usr/bin/evn ruby

---

<div class="post-metadata">

**Author:** ![seanstewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Post date:** [May 24, 2007, 4:09am UTC](https://www.ruby-forum.com/t/change-location-of-ruby-installation/104937/3 "2007-05-24T04:09:45Z")

</div>

Would that prevent me from testing locally?

---

<div class="post-metadata">

**Author:** ![seanstewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85f322/32.png) [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Post date:** [May 24, 2007, 8:39am UTC](https://www.ruby-forum.com/t/change-location-of-ruby-installation/104937/4 "2007-05-24T08:39:03Z")

</div>

I just installed the full stack in about 1 hour following the  
instructions at: [http://www.maconrails.com/](http://www.maconrails.com/)

I chose to use a different location: /users/xxx/src rathe than a  
global location and only had to replace obvious paths.

If you are on linux rather than a Mac the instructions will almost  
work as well as they are virtually all terminal commands. Just pay  
attention around the setup for PATH.

Michael
