Skip to content

Instantly share code, notes, and snippets.

@cyanglee
Forked from codemis/ruby_chef_install.sh
Last active December 20, 2015 02:09
Show Gist options
  • Save cyanglee/6053979 to your computer and use it in GitHub Desktop.
Save cyanglee/6053979 to your computer and use it in GitHub Desktop.
ruby 2.0 on Ubuntu 12.10 x64
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install build-essential libyaml-dev zlib1g-dev openssl libssl-dev libreadline6-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
tar -xvzf ruby-2.0.0-p0.tar.gz
cd ruby-2.0.0-p0
sudo ./configure --prefix=/usr/local
sudo make
sudo make install
gem install chef ruby-shadow --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment