Categories
command-line

Install Script For Rails on Debian

The following works great on Rackspace’s Debian Virtual Servers and within 5 minutes you got a running rails instance.

#!/bin/bash

apt-get update -y
apt-get upgrade -y
apt-get install dlocate -y
apt-get install build-essential libssl-dev libreadline5-dev zlib1g-dev -y
apt-get install sqlite3 -y
cd /usr/local/src
wget ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz
tar zxvf stable-snapshot.tar.gz
cd ruby
./configure && make && make install
ruby -v
ruby -ropenssl -rzlib -rreadline -e “puts :Hello”
cd /usr/local/src
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
ruby setup.rb
gem install rails
apt-get install mysql-server mysql-client -y
apt-get install libmysql-ruby libmysqlclient15-dev -y
gem install mysql — –with-mysql-include=/usr/include –with-mysql-lib=/usr/lib
gem install mongrel –include-dependencies
apt-get install git -y

Leave a Reply

Your email address will not be published.