Skip to content

Instantly share code, notes, and snippets.

@RobWu
Created September 26, 2012 13:30
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 RobWu/3788049 to your computer and use it in GitHub Desktop.
Save RobWu/3788049 to your computer and use it in GitHub Desktop.
Install ruby 1.9.3 (p194) on fresh Ubuntu 12.04
# http://excid3.com/blog/setting-up-ubuntu-12-04-with-ruby-1-9-3-nginx-passenger-and-postgresql-or-mysql/
# Update and install our dependencies
# This downloads the latest list of available software versions. We’ll install our build dependencies for later.
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl git-core python-software-properties
# Install Ruby 1.9.3
# We’re going to install Ruby 1.9.3 from source. Note that -p194 may not be the latest version of Ruby. Check out ruby-lang.org to get the latest version and replace it in the following commands:
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar -xvzf ruby-1.9.3-p194.tar.gz
cd ruby-1.9.3-p194/
./configure
make
# make test # optional
sudo make install
echo "gem: --no-ri --no-rdoc" >> ~/.
sudo gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment