Created
July 22, 2011 19:19
-
-
Save macarthy/1100195 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
#!/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