I’ve installed rvm globally on each linux workstation.
First, make sure you speak with me first, I need to add you into the proper unix group.
- Check your group to make sure you are in the rvm group
tmullaly@yel:~$ id uid=7265(tmullaly) gid=10241(ugrad) groups=10241(ugrad),1080(cs108-1),20106(rvm)
- Add this rvm directive to your .bashrc
[[ -s "/etc/profile.d/rvm.sh" ]] && . "/etc/profile.d/rvm.sh" # Load RVM function
Logout and log back in to make sure your .bashrc has been sourced
Check to see if ruby and gem is now in your path
tmullaly@yel:~$ which ruby /usr/local/rvm/rubies/ruby-2.0.0-p0/bin/ruby tmullaly@yel:~$ which gem /usr/local/rvm/rubies/ruby-2.0.0-p0/bin/gem
- Check what gems are installed
tmullaly@yel:~$ gem list *** LOCAL GEMS *** bundler (1.3.0) rake (10.0.3) rubygems-bundler (1.1.1) rvm (18.104.22.168)
- install rails, or whatever gem you need
gem install rails
Gems get install globally per machine, if you install a gem on red, I can use it. If you install a gem on blue and then you login to cyan, you need to install it again.
Here are some more notes to update to a newer version of rvm and/or ruby
rvm get stable rvm install ruby rvm --default use 2.0.0