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
on 2008-11-04 13:29
on 2008-11-04 13:42
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.
on 2008-11-04 13:44
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
on 2008-11-04 13:48
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.