I’ve been doing rails dev in my spare time lately and decided that I was going to migrate to Linux for that. Thankfully, I’m a linux vet so that didn’t scare me one bit!

The install steps were pretty much the same as on windows:

  1. Install Ruby (sudo apt-get install ruby)
  2. Install Ruby Gems (sudo apt-get install rubygems1.8)
  3. Install rails (sudo gem install rails -v=3.0.3)
  4. Get your app outta git
  5. Install required gems with bundle

Unfortunately, step 5 isn’t quite so simple. The sqlite3 gem — which is pretty much mandated by default by RoR — requires some native extensions to be built.

To actually get the damn gem to install

All you have to do is as follows:

  1. sudo apt-get install sqlite3
  2. sudo apt-get install libsqlite3-dev
  3. sudo apt-get install sqlite3-ruby
  4. Re-run bundle

You wouldn’t believe how long that took me to work out for some reason.

Advertisements