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
but still can’t get it in the local folder. ANy help would be very
grateful.
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:
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.
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.