I did RVM single user installation on my CentOS server as root user, so rvm location is /usr/local.. However, now we have to use individual user accounts.
So now if I try to install a new gem, for instance -
gem install linecache19 -v '0.5.12'
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /usr/local/rvm/gems/ruby-1.9.2-p320@cams directory.
sudo gem install linecache19 -v '0.5.12'
/usr/local/rvm/rubies/ruby-1.9.2-p320/bin/gem:12:in `require': no such file to load -- rubygems (LoadError) from /usr/local/rvm/rubies/ruby-1.9.2-p320/bin/gem:12
Point to note: I thought of re-installing the rubies and rvm with individual user account and do away with root installation. But I already have some apps running on the server as staging, so want to avoid this.
How can I solve these problems?