Skip to content

Instantly share code, notes, and snippets.

@wuputah
Forked from radar/gist:249555
Created December 5, 2009 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wuputah/249619 to your computer and use it in GitHub Desktop.
Save wuputah/249619 to your computer and use it in GitHub Desktop.
#!/bin/bash
# You can run this on your server by doing this:
# bash -c "`wget -O - frozenplague.net/boris`"
# If you don't have wget, use curl.
echo "Need your password to install things:"
sudo apt-get -y update
sudo apt-get -y install build-essential mysql-server libmysqlclient15-dev apache2 libssl-dev apache2-prefork-dev libapr1-dev libaprutil1-dev zlib1g zlib1g-dev
pushd /tmp
mkdir ruby
cd ruby
wget --progress=bar ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz -O - | tar -zxf - --strip-components 1
./configure
make
echo "Need your password to install Ruby:"
sudo make install
cd ext/openssl
ruby extconf.rb
make
sudo make install
sudo mkdir -p /usr/local/src
sudo mv /tmp/ruby /usr/local/src
popd
sudo gem install --no-rdoc --no-ri mysql passenger rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment