Skip to content

Instantly share code, notes, and snippets.

@kohenkatz
Created August 19, 2013 02:11
Show Gist options
  • Save kohenkatz/6265250 to your computer and use it in GitHub Desktop.
Save kohenkatz/6265250 to your computer and use it in GitHub Desktop.
How to install Ruby 2.0.0 on Ubuntu
# Install the prereqs.
sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev
# Make sure there are no old versions lying around...
sudo apt-get remove -y ruby1.8 ruby1.9.1 ruby-1.9.3
mkdir /tmp/ruby && cd /tmp/ruby
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | tar xz
cd ruby-2.0.0-p247
./configure
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment