Last active
December 19, 2015 15:59
-
-
Save whatcould/5980465 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to use Chef 11.10, Ruby 2.0.0-p451