Skip to content

Instantly share code, notes, and snippets.

@mustmodify
Forked from ryanb/chef_solo_bootstrap.sh
Created July 3, 2012 18:48
Show Gist options
  • Save mustmodify/3041856 to your computer and use it in GitHub Desktop.
Save mustmodify/3041856 to your computer and use it in GitHub Desktop.
Bootstrap Chef Solo with MRI 1.9.3
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libmysqlclient-dev libyaml-dev
export RUBY_MAJOR_VER='1.9'
export RUBY_FULL_VER='ruby-1.9.3-p194'
export RUBY_GEMS_VERSION='1.7.2'
cd /tmp
wget http://rubyforge.org/frs/download.php/74619/rubygems-1.7.2.tgz
tar -xvzf $RUBY_FULL_VER.tar.gz
cd $RUBY_FULL_VER
./configure --prefix=/usr/local
make
make install
gem install chef ruby-shadow mysql bundler rake passenger --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment