Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Script to install Ruby on Rails environment on Ubuntu 8.10
# Updating Ubuntu
sudo aptitude update
sudo aptitude --assume-yes dist-upgrade
# Installing vim
sudo aptitude --assume-yes install vim vim-gnome
# Installing dependencies
sudo aptitude --assume-yes install build-essential
# Installing ruby, irb, rdoc, ri and some ruby libs
sudo aptitude --assume-yes install \
irb \
irb1.8 \
libmysql-ruby \
libmysql-ruby1.8 \
libopenssl-ruby \
libopenssl-ruby1.8 \
libreadline-ruby1.8 \
libruby1.8 \
rdoc \
rdoc1.8 \
ri \
ri1.8 \
ruby \
ruby1.8 \
# Creating synbolic links to ruby
sudo ln -s /usr/bin/gem1.8 /usr/local/bin/gem
sudo ln -s /usr/bin/ruby1.8 /usr/local/bin/ruby
sudo ln -s /usr/bin/rdoc1.8 /usr/local/bin/rdoc
sudo ln -s /usr/bin/ri1.8 /usr/local/bin/ri
sudo ln -s /usr/bin/irb1.8 /usr/local/bin/irb
# Installing RCov
aptitude install rcov
# Installing rubygems
tar xzvf rubygems-1.3.1.tgz
cd rubygems-1.3.1
sudo ruby setup.rb
cd ..
rm -f rubygems-1.3.1.tgz
rm -rf rubygems-1.3.1
gem update --system
# Installing rails
sudo gem install rails
# Installing sqlite3
sudo aptitude install libsqlite3-dev
sudo gem install sqlite3-ruby
# Installing mysql
sudo apt-get install --assume-yes \
mysql-server mysql-client \
libmysqlclient-dev libmysqlclient15-dev libmysql-ruby libmysql-ruby1.8
sudo gem install mysql
# Installing git
mkdir gitcore
cd gitcore
sudo aptitude --assume-yes install build-dep tk8.5 git-core
tar xzvf git-
cd git-
make install
cd ..
rm -f git-
rm -rf git-
cd ..
rm -rf gitcore/
# Installing some gems
sudo gem install rake
sudo gem install capistrano
sudo gem install capistrano-ext
sudo gem install ruby-debug
sudo gem install term-ansicolor
sudo gem install mongrel
sudo gem install fastercsv
sudo gem install rspec rspec-rails
# Uncomment this lines if you want to install prawn gem
# sudo gem install prawn prawn-format prawn-layout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment