I'm trying to install Rails using Rubygems via RVM. When running the command gem install rails -v 3.2.0
, I receive the error:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/share/ruby-rvm/gems/ruby-1.9.3-p0 directory.
I don't want to run it with sudo
because RVM's website specifically advises against that. Any thoughts why I may be getting this error and how to get around it?
Details:
- RVM version 1.10.2
- Ruby version 1.9.3
- Ubuntu version 11.10