Skip to content

Instantly share code, notes, and snippets.

@robcthegeek
Created December 5, 2010 19:05
Show Gist options
  • Save robcthegeek/729350 to your computer and use it in GitHub Desktop.
Save robcthegeek/729350 to your computer and use it in GitHub Desktop.
Installation Instructions for Rails 3 on Ubuntu 10.10
# Build Checklist (http://ruby.about.com/od/rubyversionmanager/ss/installrvmlinux_2.htm)
$ sudo apt-get install build-essential
$ sudo apt-get install curl
$ sudo apt-get install zlib1g-dev libreadline5-dev libssl-dev libxml2-dev libopenssl-ruby
# Install Distro Version of Ruby (Since RVM Is Written in Ruby)
$ sudo apt-get install ruby1.8 rubygems1.8
# First Install RVM (http://rvm.beginrescueend.com/)
$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
# The first time you install RVM, you must put the following line into your ~/.bash_profile at the very end, after all path loads etc:
# This loads RVM into a shell session.
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# Install Some Required Packages to RVM (Just In Case!)
$ rvm package install zlib
$ rvm package install readline
$ rvm package install autoconf
$ rvm package install openssl
# Install Ruby 1.9.2
$ rvm install 1.9.2 --with-openssl-dir=$HOME/.rvm/usr
# Make Sure OpenSSL Is OK
$ cd ~/.rvm/src/ruby-1.9.2-p0/ext/openssl
$ ruby extconf.rb
$ make
$ make install
# Set the Default Ruby
$ rvm --default use 1.9.2
# Create Rails 3 Environment (For Gem Isolation)
$ rvm use --create 1.9.2@rails3
# At This Point, Check 'sqlite3' Install Via Synaptic
$ sudo apt-get install libsqlite3-dev
$ sudo apt-get install sqlite3
# Also Check That '.rvm/gems/ruby-1.9.2-p0/bin' Is In $PATH - If NOT:
$ export PATH=.rvm/gems/ruby-1.9.2-p0/bin:$PATH
# OK, Now Install Gems
$ gem install sqllite3-ruby
$ gem install rails
# Switching Back to System Ruby
$ rvm system
# ... And Back to Rails 3
$ rvm 1.9.2@rails3
@robcthegeek
Copy link
Author

Looks like this is working OK, just ran this from scratch on Meerkat, Ruby 1.92 and Rails 3.0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment