Topic: Problem using Ruby on Rails on Mac OS X (SOLVED)

Hi all,

I am having a bit of a problem with my installation of RoR I have installed it on a Macbook Pro which is running OS X 10.4 using this tutorial:

http://hivelogic.com/articles/2007/02/r … -mysql-osx

Everything installed fine and with no errors, however whenever I start Rails I get the following message:

Cannot find gem for Rails ~>2.0.2.0:
    Install the missing gem with 'gem install -v=2.0.2 rails', or
    change environment.rb to define RAILS_GEM_VERSION with your desired version.

then when i do as it asks and install it using the command it gives I get the following:

gem install -v=2.0.2 rails
Bulk updating Gem source index for: http://gems.rubyforge.org
Install required dependency rake? [Yn]  y
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - /usr/local/lib/ruby/gems/1.8/cache/rake-0.8.1.gem

can anyone help me with this please??

thanks in advance

Yorkie

Last edited by yorkie-t (2008-05-27 06:37:33)

Re: Problem using Ruby on Rails on Mac OS X (SOLVED)

I think you need to do

sudo gem install -v=2.0.2 rails

"Every program has (at least) two purposes: the one for which it was written, and another for which it wasn't."

Re: Problem using Ruby on Rails on Mac OS X (SOLVED)

thanks for the reply squil.

I was acuatlly just coming back on to mark this as solved lol, you are correct it does need to be done as

   1. sudo gem install -v=2.0.2 rails

Thanks again for your help Squil smile


Yorkie