Skip to content

Instantly share code, notes, and snippets.

@lanvige
Created June 22, 2014 01:36
Show Gist options
  • Save lanvige/0a381ad7ab116a9e8b8d to your computer and use it in GitHub Desktop.
Save lanvige/0a381ad7ab116a9e8b8d to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Pre-requisites
sudo apt-get -y update
sudo apt-get --no-install-recommends -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev vim
# Download and compile Ruby 2.1.2
cd /tmp
wget http://ruby.taobao.org/mirrors/ruby/2.1/ruby-2.1.2.tar.gz
tar -xvzf ruby-2.1.2.tar.gz
cd ruby-2.1.2
./configure --prefix=/usr/local
make
make install
# Install Chef
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