Archive for the 'rvm' Category

09
Jun
12

ruby, rvm and ubuntu

Here’s how to get a working installation of rvm on ubuntu:


sudo apt-get install curl git-core

sudo apt-get install build-essential openssl libreadline6 libreadline6-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 automake libtool bison subversion libcurl4-gnutls-dev postgresql postgresql-contrib libpq-dev

curl -L get.rvm.io | bash -s stable --ruby

Next, add a user to postgresql:


sudo -u postgres createuser --superuser john
sudo -u postgres psql postgres
\password john
\q

And add this to your .bashrc:


[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm



Blog Stats

  • 221,522 hits