-
-
Save huobazi/1135985 to your computer and use it in GitHub Desktop.
Debian Squeeze i686 from blank install to RVM + Ruby 1.9.2 + MongoDB 1.8.2 + NGINX + Passenger
This file contains 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
cd $HOME | |
mkdir binaries | |
cd binaries/ | |
echo "Installing dev toolchain" | |
sudo apt-get install curl git bzip2 gcc make build-essential libcurl4-openssl-dev libssl-dev zlib1g-dev | |
echo "Getting Mongo..." | |
curl http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.8.2.tgz -o mongodb-linux-i686-1.8.2.tgz | |
tar -xzvf mongodb-linux-i686-1.8.2.tgz | |
rm mongodb-linux-i686-1.8.2.tgz | |
echo "Installing RVM as root..." | |
sudo bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
sudo /usr/local/rvm/bin/rvm pkg install openssl | |
sudo /usr/local/rvm/bin/rvm pkg install zlib | |
sudo /usr/local/rvm/bin/rvm install 1.9.2 --with-zlib-dir=$rvm_path/usr --with-openssl-dir=$rvm_path/usr | |
sudo /usr/local/rvm/bin/rvm use 1.9.2 --default | |
cd $HOME | |
echo "Installing Passanger..." | |
sudo /usr/local/rvm/bin/rvm exec gem install passenger | |
sudo /usr/local/rvm/bin/rvm exec passenger-install-nginx-module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment