Master ruby with us

J. Install RoR on Ubuntu on

This is the fastest way to get Ruby and Rails installed on a Slice, mainly from info at

Make sure the universe repository in /etc/apt/sources.list is uncommented:

deb dapper universe
deb-src dapper universe
# apt-get update
# apt-get install ruby irb ri rdoc ruby1.8-dev build-essential

That will take a minute. Next up ruby gems:

# wget <-- OLD VERSION
# wget
# tar -zxvf rubygems-0.9.2.tgz
# cd rubygems-0.9.2
# ruby setup.rb
# gem update

Now rails (2-3 minutes):

# gem install rails --include-dependencies

That’s it! To start a Rails project:

$ rails my_app
$ cd my_app
$ script/server

Now don’t forget, you DO need to install database support, such as MySQL or SQLite3.

# apt-get install libsqlite3-0 libsqlite3-dev sqlite3 swig libsqlite3-ruby
# gem install sqlite3-ruby
# apt-get install mysql-server libmysql-ruby

One Response to “J. Install RoR on Ubuntu on”

  1. krister said

    cool thanks this is helpful. 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: