How to move ruby from /usr/bin/ to /usr/local/bin/ on OSX Snow leopard 10.6

Hi i’m a beginner to ruby on rails and I am trying to start a tutorial
but having trouble making sure ruby is in the right place. When i use
the terminal and ask “which ruby” it comes back with /usr/bin/ whilst
I think i needs it to be in usr/local/bin but i don’t know how to get
it there. There is not even a bin folder in the local area at present.
I am following these up to date installation instructions
http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard
but still can’t get it in the local folder. ANy help would be very
grateful.

Regards Peter

On Tue, Mar 23, 2010 at 1:25 PM, Peter [email protected] wrote:

Regards Peter

Peter, if you’re talking about moving the system installed Ruby, I would
recommend
against this action because this is installed by the OS. Also, you do
not
know what
service(s) depends on it. However, I would recommend using Ruby Version
Manager
(RVM) to manage your Ruby installations. Thus, you can find more
information about
RVM here:

http://rvm.beginrescueend.com

Good luck,

-Conrad

Peter <[email protected]…> writes:

Hi i’m a beginner to ruby on rails and I am trying to start a tutorial

http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard
but still can’t get it in the local folder. ANy help would be very
grateful.

Regards Peter

Peter
is your $PATH set to
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

If not it will default to usr/bin and the apple rails

you can check by typing echo $PATH

On Tue, Mar 23, 2010 at 5:09 PM, Peter [email protected] wrote:

Hey thanks for the help but i think i solved my problem now, I
downloaded the latest xcode and made sure i restarted the computer
before reinstalling everything, now says its in /usr/local/bin/ruby
where the the tutorial says it should be.

Peter, you shouldn’t have to install Ruby 1.8.7 being that it comes with
Mac
OS
10.6. The only thing that you needed to do was upgrade Rubygems and
Rails. Thus, the instructions appear to be dated being the current
version
of
Rubygems is 1.3.6.

Good luck,

-Conrad

Hey thanks for the help but i think i solved my problem now, I
downloaded the latest xcode and made sure i restarted the computer
before reinstalling everything, now says its in /usr/local/bin/ruby
where the the tutorial says it should be.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs