Created
October 18, 2009 17:02
-
-
Save ihower/212749 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install Guide: | |
# 1. Use http://www.virtualbox.org if you use Windows or OS X | |
# 2. Download http://www.ubuntu.com 9.04 Desktop Edition and install into VM. | |
# 3. In your ubuntu console: | |
# $ wget http://gist.github.com/raw/212749/dfc34bd47732d25da0715a52aef2158cfba99d71/ruby_install_script_on_ubuntu | |
# $ chmod 555 ruby_install_script_on_ubuntu | |
# $ ./ruby_install_script_on_ubuntu | |
# echo "Update&Upgrade ubuntu packages (optional)" | |
# sudo apt-get update | |
# sudo apt-get upgrade -y | |
echo "Install building tools..." | |
sudo apt-get install -y build-essential | |
echo "Install Ruby 1.8..." | |
sudo apt-get install -y ruby ruby-dev irb rdoc libopenssl-ruby | |
echo "Install Rubygems..." | |
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz | |
tar zxvf rubygems-1.3.5.tgz | |
cd rubygems-1.3.5 | |
sudo ruby setup.rb | |
cd .. | |
echo "Install Sinatra..." | |
sudo gem1.8 install sinatra --no-ri --no-rdoc | |
echo "Install sqlite3..." | |
sudo apt-get install -y sqlite3 libsqlite3-dev libsqlite3-ruby | |
sudo gem1.8 install sqlite3-ruby --no-ri --no-rdoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment