I recently did a fresh install of Ubuntu on a Dell laptop for a Rails project I’m working on. Everything was cruising along perfectly until I tried getting RVM installed, which I erroneously assumed would be a breeze. I kept bumping into issues where an installed gem was complaining that it wasn’t compiled against the correct libraries. For each error, I needed to invoke a special rvm package install uninstall the ruby, reinstall the ruby and reinstall the gems. It was turning into a nightmare.
It turns out that Chris Irish had a much cleaner approach: install all the libraries via apt-get and be done with it. Too simple. I followed the steps in his post and was rollin’ with RVM in no time. It appears that the following packages needed to be installed prior to installing the gems:
sudo apt-get install build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim libsqlite3-0 libsqlite3-dev sqlite3 libreadline-dev libxml2-dev git-core subversion autoconf