Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
Forked from etrepat/rails-install.sh
Created October 14, 2010 15:16
Show Gist options
  • Save alvin2ye/626346 to your computer and use it in GitHub Desktop.
Save alvin2ye/626346 to your computer and use it in GitHub Desktop.
# How to install Ruby on Rails on Ubuntu 10.04 (Server) Lucid Lynx
# ---
# Disclaimer: This are my own install of ruby env / rails steps. They work in my setups.
# Tested on x32 & x64 fresh copies of Ubuntu 10.04 server.
# ---
# TODO: add rvm/rails3 version of this steps
# ---
# you definitely want git installed ;)
sudo apt-get install git-core
# install ruby env
sudo apt-get install ruby rdoc libopenssl-ruby libreadline-ruby irb ri ruby-dev libyaml-ruby libzlib-ruby libxml2-dev libxsld-dev
# install rubygems (from site)
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar zxvf rubygems-1.3.7.tgz
sudo ruby setup.rb
sudo ln -s /usr/bin/gem1.8 /usr/local/bin/gem
sudo gem update --system
# install som DB support (sqlite3, mysql, ... others may follow the same steps)
# if support for SQLite3 needed
sudo apt-get install libsqlite3-dev sqlite3 sqlite3-doc
sudo gem install sqlite3-ruby
# if support for MySQL needed
sudo apt-get install libmysqlclient-dev mysql-server
sudo gem install mysql
# if support for PostgreSQL needed
sudo apt-get install postgresql postgresql-client postgresql-doc pgadmin3 libpq-dev
sudo gem install pg
# if support for imagemagick is needed
sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev
sudo gem install rmagick
# Finally... install rails ;)
sudo gem install rails
# then install your own set of gem sets...
# have fun & happy coding!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment