Skip to content

Instantly share code, notes, and snippets.

@whatcould
Last active December 19, 2015 15:59
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 whatcould/5980465 to your computer and use it in GitHub Desktop.
Save whatcould/5980465 to your computer and use it in GitHub Desktop.
apt-get -y update
apt-get -y build-dep build-essential
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libffi-dev libxslt1-dev libxml2-dev
cd /tmp
curl -s -L http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz | tar xzv
cd `ls | grep -m 1 ruby-`
./configure --prefix=/usr/local --disable-install-rdoc
make
make install
gem update --system
# Download and build Chef compatible with Ruby 2.0
cd /tmp
curl -L https://github.com/opscode/chef/archive/11.10.4.ohai7.0.tar.gz | tar xvz
cd `ls | grep -m 1 chef`
gem build chef.gemspec
gem install `ls | grep -m 1 "chef-.*\.gem"` --no-ri --no-rdoc
gem install ruby-shadow --no-ri --no-rdoc
gem install json --version 1.7.7 --no-ri --no-rdoc
@whatcould
Copy link
Author

Updated to use Chef 11.10, Ruby 2.0.0-p451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment