Quick Ruby install
Install packages:
sudo apt-get install build-essential ruby rubygems git curl libncurses5-dev
Install RVM:
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
The first timeyou install RVM, you must put the following line into
your ~/.bash_profile at the very end, after all path loads etc:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
Setup RVM packages:
rvm package install readline
rvm package install zlib
rvm package install openssl
rvm install 1.8.7 --with-openssl-dir=$rvm_path/usr --with-readline-dir=$rvm_path/usr --with-zlib-dir=$rvm_path/usr
rvm --default use 1.8.7
rvm use 1.8.7
cd ~/.rvm/src/ruby-1.8.7-p302/ext/readline/
ruby extconf.rb -- --with-readline-dir="$HOME/.rvm/usr"make install
Why RVM doesn't install the packages automatically is beyond me,
because I hoped RVM would make my life easier...


