Forum: Ruby on Rails Updating Rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C2edf11707035cc849b3e35a26484293?d=identicon&s=25 Richie (Guest)
on 2008-11-04 12:29
(Received via mailing list)
Hi there,

Brand new to RoR just reading thru agile development with rails. I'm
currently on version 2.1.0 and attempting to update to 2.1.2 however
when I issue the command 'gem update rails' I see the following
output:

Updating installed gems
Updating rails
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - /usr/local/lib/ruby/gems/1.8/cache/
activesupport-2.1.2.gem

Has anyone else come across this problem now or in the past? If so
please can you help me!!

Thanks in advance.
Richard Delph
613340c5fef56ad6fc3bf8cc617266ae?d=identicon&s=25 Andrew Porter (Guest)
on 2008-11-04 12:42
(Received via mailing list)
Richie wrote:
> ERROR:  While executing gem ... (Errno::EACCES)
>     Permission denied - /usr/local/lib/ruby/gems/1.8/cache/
>
> Has anyone else come across this problem now or in the past? If so
> please can you help me!!

you don't have permission to write in that location.

Run the update as root.
2d8132658d56e51f19ace1c68e48b6aa?d=identicon&s=25 Thorsten Mueller (thorsten)
on 2008-11-04 12:44
(Received via mailing list)
With questions like this, it's extremely helpful
to post some details about the used OS.

Guess, it's Linux or OS X, then you should run
it as root like:

sudo gem update rails

goes for most permission errors.

If it's Windows, you must login as Admin I guess
C2edf11707035cc849b3e35a26484293?d=identicon&s=25 Richie (Guest)
on 2008-11-04 12:48
(Received via mailing list)
Hi guys, after posting I suddenly remembered I used the 'sudo' command
when initially installing rails!! Have been a mac user for nearly 10
years and new to unix & the shell in os x but quickly getting the hang
of things through practice! Thanks for the swift response anyway, much
appreciated.
This topic is locked and can not be replied to.