Installing Rails RVM on Ubuntu 11.10

Using as a basis a previous post I have updated it to run on Ubuntu 11.10.

sudo apt-get install curl git-core build-essential bison openssl libreadline5 zlib1g zlib1g-dev libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libmysqlclient-dev mysql-client mysql-server autoconf

curl -L http://rvm.beginrescueend.com/releases/rvm-install-head > rvm-install-head
bash rvm-install-head


echo ‘[[ -s “$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm” # Load RVM function’ >> ~/.bash_profile

source ~/.bash_profile

rvm install 1.9.2
rvm use 1.9.2 –default
rvm 1.9.2 –passenger
rvm 1.9.2
gem install rails mysql passenger
apt-get install libcurl4-openssl-dev
rvmsudo passenger-install-nginx-module



gem install rails


rm rvm-install-head