# Updating Rails

**URL:** <https://www.ruby-forum.com/t/updating-rails/152475>\
**Category:** Rails\
**Created:** [November 4, 2008, 12:29pm UTC](https://www.ruby-forum.com/t/updating-rails/152475 "2008-11-04T12:29:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@Richie](https://www.ruby-forum.com/u/Richie)\
**Post date:** [November 4, 2008, 12:29pm UTC](https://www.ruby-forum.com/t/updating-rails/152475/1 "2008-11-04T12:29:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Richie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@Richie](https://www.ruby-forum.com/u/Richie)\
**Post date:** [November 4, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/updating-rails/152475/2 "2008-11-04T12:42:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Richie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@Richie](https://www.ruby-forum.com/u/Richie)\
**Post date:** [November 4, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/updating-rails/152475/3 "2008-11-04T12:44:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Richie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d6d6ee/32.png) [@Richie](https://www.ruby-forum.com/u/Richie)\
**Post date:** [November 4, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/updating-rails/152475/4 "2008-11-04T12:48:48Z")

</div>

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.
