Gem::FilePermissionError

Arivarasan Lingasamy
Fri, 01 Oct 2010 10:13:46 -0000

while i updating my rails version with command,

gem install -v=2.3.8 rails

i got,

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

how could i solve the problem?