User Tools

Site Tools


Sidebar


guides:rails:rvm

RVM

rvm = ruby version manager

1a. Install RVM as a user

http://rvm.beginrescueend.com/rvm/install/

Install by git

mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone --depth 1 git://github.com/wayneeseguin/rvm.git && cd rvm && ./install

Add following to your .profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM into a shell session.

Else if installed as root add following to /etc/profile

[pre] # Load RVM if it is installed, # first try to load user install # then try to load root install, if user install is not there. if [ -s “$HOME/.rvm/scripts/rvm” ] ; then

. "$HOME/.rvm/scripts/rvm"

elif [ -s “/usr/local/rvm/scripts/rvm” ] ; then

. "/usr/local/rvm/scripts/rvm"

fi [/pre]

1b. Install RVM as Root

guide: http://rvm.beginrescueend.com/deployment/system-wide/

$ bash < <( curl -L http://bit.ly/rvm-install-system-wide )

update the global profile /etc/profile

[[ -s "/usr/local/lib/rvm" ]] && . "/usr/local/lib/rvm"  # This loads RVM into a shell session.

2. Installing Ruby version '1.8.7' and '1.9.2' with RVM. You can check the latest ruby from http://www.ruby-lang.org/en/downloads/

rvm install 1.8.7
rvm install 1.9.2
  
rvm use 1.9.2 --default

3. Install Rails within the running Ruby Version

gem install rails
guides/rails/rvm.txt · Last modified: 2010/11/25 12:49 by michaelc