Created
October 11, 2009 15:22
-
-
Save adamcooke/207720 to your computer and use it in GitHub Desktop.
Ubuntu/Debian Ruby & Passenger Install Script
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 | |
cd /tmp | |
apt-get update | |
apt-get upgrade | |
aptitude -yq install build-essential --without-recommends | |
aptitude -yq install zlib1g-dev ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby | |
ln -s /usr/bin/ruby1.8 /usr/bin/ruby | |
ln -s /usr/bin/ri1.8 /usr/bin/ri | |
ln -s /usr/bin/rdoc1.8 /usr/bin/rdoc | |
ln -s /usr/bin/irb1.8 /usr/bin/irb | |
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 | |
ln -s /usr/bin/gem1.8 /usr/bin/gem | |
cd .. | |
rm -Rf rubygems-1.3.5* | |
gem update --system | |
wget http://kernel.org/pub/software/scm/git/git-1.6.4.2.tar.gz | |
tar zxvf git-1.6.4.2.tar.gz | |
cd git-1.6.4.2 | |
./configure --without-tcltk | |
make | |
make install | |
cd .. | |
rm -Rf git-1.6.4.2* | |
aptitude -yq install mysql-client libmysqlclient15-dev libmysql-ruby1.8 mysql-server --without-recommends | |
gem install mysql --no-rdoc --no-ri | |
aptitude -yq install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapr1-dev apache2-prefork-dev --without-recommends | |
gem install passenger --no-rdoc --no-ri | |
passenger-install-apache2-module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment