This thing is driving me nuts.
I've installed RVM on a CentOS server; I followed the mixed mode instructions perfectly. https://rvm.io/rvm/install/
When I try to do a "gem install" from a user account however, I get this:
You don't have write permissions into the /usr/local/rvm/gems/ruby-1.9.3-p194 directory.
It is my understanding that if RVM mixed mode is set up properly, users can install their own gems. It's not feasible here for me to give all ruby users the ability to install gems globally.
Here's what I've done after login:
# gem install rails
-bash: gem: command not found
# rvm use 1.9.3
Using /usr/local/rvm/gems/ruby-1.9.3-p194
Running /usr/local/rvm/hooks/after_use
# gem install rails
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/local/rvm/gems/ruby-1.9.3-p194 directory.
Okay, I have a lead (a related question popped up on here).
My gem path is:
# echo $GEM_PATH
/usr/local/rvm/gems/ruby-1.9.3-p194:/usr/local/rvm/gems/ruby-1.9.3-p194@global
Doesn't seem right.