Skip to content

Instantly share code, notes, and snippets.

@mustmodify
Forked from bartimaeus/install-ruby.sh
Last active December 20, 2015 02:19
Show Gist options
  • Save mustmodify/6055063 to your computer and use it in GitHub Desktop.
Save mustmodify/6055063 to your computer and use it in GitHub Desktop.
brand new slice as root:
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libxml2-dev libxslt-dev libreadline6-dev libyaml-dev libmysqlclient-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar -xvzf ruby-2.1.2.tar.gz
cd ruby-2.1.2-p<tab>
./configure --prefix=/usr/local
make
make install
apt-get install git
apt-get install mysql-server mysql-client
apt-get install vim
gem install bundler
# PASSENGER / NGINX
# http://www.modrails.com/documentation/Users%20guide%20Nginx.html
gem install passenger
apt-get install libcurl4-openssl-dev # will be needed for passenger
passenger-install-nginx-module
wget "http://wiki.nginx.org/index.php?title=Nginx-init-ubuntu&action=raw&anchor=nginx" -O /etc/init.d/nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment