Rails 2 :: OSX Gem update --system :: Permissions Help

Hello,

I am trying to update my system to Rails 2. I followed the excellent
instructions at Hivelogic to get rails running on my mac. However, I
am getting a permissions error that I am unsure how to handle.

$ script/server
Rails requires RubyGems >= 0.9.4 (you have 0.9.2). Please `gem update
--system` and try again.

$ gem update --system
Updating RubyGems...
Attempting remote update of rubygems-update
ERROR: While executing gem ... (Errno::EACCES)
    Permission denied - /usr/local/lib/ruby/gems/1.8/cache/rubygems-
update-1.0.0.gem

Not sure how to change permissions on these library files, or if that
is even what I should do! Can anyone give me guidance or assistance?

Thanks!

try "sudo gem update --system"

good luck.
Mike

You need to run the process as administrator.

sudo gem update --system

Michael Bleigh
michael@intridea.com

Hello,

The sudo command worked if anyone encounters the same problem.

Thanks for your help and advice.

Thanks again!