ihower (owner)

Revisions

gist: 212749 Download_button fork
public
Public Clone URL: git://gist.github.com/212749.git
Embed All Files: show embed
ruby_install_script_on_ubuntu #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/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