apt-get update
apt-get install build-essential bison openssl libreadline5 libreadline5-dev \
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 \
libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev libcurl4-openssl-dev
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)