Skip to content

Instantly share code, notes, and snippets.

@macarthy
Created July 22, 2011 19:19
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 macarthy/1100195 to your computer and use it in GitHub Desktop.
Save macarthy/1100195 to your computer and use it in GitHub Desktop.
#!/bin/bash
apt-get install gcc g++ build-essential libssl-dev libreadline5-dev zlib1g-dev linux-headers-g eneric libsqlite3-dev
mkdir ~/src
cd ~/src/
mkdir ruby1_9
cd ruby1_9/
wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz
tar -xvzf ruby-1.9.2-p0.tar.gz
cd ruby-1.9.2-p0/
./configure --prefix=/usr/local/ruby1_9_2
make && make install
ln -s /usr/local/ruby /usr/local/ruby1_9_2
ln -s /usr/local/ruby/bin/ruby /usr/local/bin/ruby
ln -s /usr/local/ruby/bin/gem /usr/bin/gem
ln -s /usr/local/ruby/bin/irb /usr/bin/irb
ln -s /usr/local/ruby/bin/rake /usr/bin/rake
gem install chef
gem install ohai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment