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:
- Install Ruby (sudo apt-get install ruby)
- Install Ruby Gems (sudo apt-get install rubygems1.8)
- Install rails (sudo gem install rails -v=3.0.3)
- Get your app outta git
- 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:
- sudo apt-get install sqlite3
- sudo apt-get install libsqlite3-dev
- sudo apt-get install sqlite3-ruby
- Re-run bundle
You wouldn’t believe how long that took me to work out for some reason.