% bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-latest )
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1426 100 1426 0 0 1031 0 0:00:01 0:00:01 --:--:-- 1281
rvm-1.2.4
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 693k 100 693k 0 0 47745 0 0:00:14 0:00:14 --:--:-- 49909

RVM: Shell scripts enabling management of multiple ruby environments.
RTFM: http://rvm.beginrescueend.com/
HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)

Installing RVM to /Users/fumi/.rvm/
Correct permissions for base binaries in /Users/fumi/.rvm/bin...
Copying manpages into place.

Notes for Darwin ( Mac OS X )
For Snow Leopard be sure to have Xcode Tools Version 3.2.1 (1613) or later
You should download the latest Xcode tools from developer.apple.com.
(This is since the dvd install for Snow Leopard contained bugs).

If you intend on installing MacRuby you must install LLVM first.
If you intend on installing JRuby you must install the JDK.
If you intend on installing IronRuby you must install Mono (version 2.6 or greater is recommended).

To seamlessly abandon the Apple-installed system ruby (ruby 1.8.7 patchlevel 174 for Snow Leopard):

rvm install 1.8.7 # installs patch 302: closest supported version
rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system # migrate your gems
rvm --default 1.8.7

You must now complete the install by loading RVM in new shells.

1) Place the folowing line at the end of your shell's loading files
(.bashrc or .bash_profile for bash and .zshrc for zsh),
after all PATH/variable settings:

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

You only need to add this line the first time you install rvm.

2) Ensure that there is no 'return' from inside the ~/.bashrc file,
otherwise rvm may be prevented from working properly.


This means that if you see something like:

'[ -z "$PS1" ] && return'

then you change this line to:

if -n "$PS1" ; then

# ... original content that was below the '&& return' line ...

fi # <= be sure to close the if at the end of the .bashrc.

# This is a good place to source rvm v v v
-s "$HOME/.rvm/scripts/rvm" && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

EOF - This marks the end of the .bashrc file

Be absolutely *sure* to REMOVE the '&& return'.

If you wish to DRY up your config you can 'source ~/.bashrc' at the bottom of your .bash_profile.

Placing all non-interactive (non login) items in the .bashrc,
including the 'source' line above and any environment settings.

3) CLOSE THIS SHELL and open a new one in order to use rvm.

WARNING: you have a 'return' statement in your ~/.bashrc
This could cause some features of RVM to not work.


This means that if you see something like:

'[ -z "$PS1" ] && return'

then you change this line to:

if -n "$PS1" ; then

# ... original content that was below the '&& return' line ...

fi # <= be sure to close the if at the end of the .bashrc.

# This is a good place to source rvm v v v
-s "$HOME/.rvm/scripts/rvm" && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

EOF - This marks the end of the .bashrc file

Even if you are using zsh you should still adjust the ~/.bashrc
If you have any questions about this please visit
#rvm on irc.freenode.net.

Installation of RVM to /Users/fumi/.rvm/ is complete.