cd ~/tmp
git clone –depth 1 git://github.com/wayneeseguin/rvm.git
cd rvm
./install
source ~/.rvm/scripts/rvm
sudo port upgrade –enforce-variants readline
sudo rvm install 1.9.2 –patch ~/.rvm/patches/ruby/1.9.2/p180/gcdata.patch -C –with-readline-dir=/opt/local/ –with-enable-readline-v6
~/.rvm/wrappers/ruby-1.9.2-p180/ruby sample.rb