Skip to content

Instantly share code, notes, and snippets.

@adamalbrecht
Forked from cyanglee/ruby_chef_install.sh
Created December 17, 2013 00:45
Show Gist options
  • Save adamalbrecht/7997996 to your computer and use it in GitHub Desktop.
Save adamalbrecht/7997996 to your computer and use it in GitHub Desktop.
#!/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