Created
February 1, 2012 05:25
-
-
Save sdeming/1715282 to your computer and use it in GitHub Desktop.
Bootstrap ruby 1.9.2 with chef on CentOS 5, needs updating to CentOS 6 and ruby 1.9.3
This file contains 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 | |
export GIT_SSL_NO_VERIFY=true | |
# rpmforge | |
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm | |
yum update -y | |
# dev requirements | |
yum groupinstall -y "Development Tools" | |
yum install -y \ | |
bash-completion \ | |
openssl-devel \ | |
readline-devel \ | |
curl-devel \ | |
zlib-devel \ | |
git \ | |
curl | |
mkdir -p /opt/essential | |
cd /opt/essential | |
git clone https://github.com/sstephenson/ruby-build.git | |
cd /opt/essential/ruby-build | |
./install.sh | |
ruby-build 1.9.2-p290 /usr/local | |
gem install chef --no-ri --no-rdoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment