Why does running rake gems:unpack result in a Gem::FilePermissionError

Posted by Globalkeith on Stack Overflow See other posts from Stack Overflow or by Globalkeith
Published on 2010-06-08T11:39:10Z Indexed on 2010/06/08 11:42 UTC
Read the original article Hit count: 350

Filed under:
|
|

I'm attempting to upgrade the friendly_id gem in a rails project.

I have removed the old gem from the vendor directory, installed the new gem from rubygems.org. When I type:

rake gems:unpack

I get the following response:

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /usr/lib/ruby/gems/1.8 directory.

Sure, I realise I can sudo it, but what I don't understand is if I would like to unpack the gem into my project vender directory, why does it need access to /usr/lib/ruby/gems....

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rubygems