Skip to content

Instantly share code, notes, and snippets.

@sdeming
Created February 1, 2012 05:25
Show Gist options
  • Save sdeming/1715282 to your computer and use it in GitHub Desktop.
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
#!/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