Forum: Ruby on Rails Change location of Ruby installation

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Cab0742af6fb712360d9e31e53693051?d=identicon&s=25 seanstewart (Guest)
on 2007-05-24 02:43
(Received via mailing list)
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?
0ab6a5abab167b409f58d280dc59a229?d=identicon&s=25 Faisal N Jawdat (Guest)
on 2007-05-24 04:06
(Received via mailing list)
if you have /usr/bin/env lying around you could change the dispatch
files to call that instead:

#!/usr/bin/evn ruby
Cab0742af6fb712360d9e31e53693051?d=identicon&s=25 seanstewart (Guest)
on 2007-05-24 04:09
(Received via mailing list)
Would that prevent me from testing locally?
588ab1c0a5610a7e160a3b101abb91e6?d=identicon&s=25 MichaelLatta (Guest)
on 2007-05-24 08:39
(Received via mailing list)
I just installed the full stack in about 1 hour following the
instructions at:

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.

This topic is locked and can not be replied to.