firstruby

Master ruby with us

J. Install RoR on Ubuntu on SliceHost.com

This is the fastest way to get Ruby and Rails installed on a Slice, mainly from info at http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntu

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

deb http://us.archive.ubuntu.com/ubuntu dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu 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 http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz <-- OLD VERSION
# wget http://rubyforge.org/frs/download.php/17190/rubygems-0.9.2.tgz
# 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
Advertisements

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

  1. krister said

    cool thanks this is helpful. 🙂

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

 
%d bloggers like this: