Created
December 11, 2012 19:20
-
-
Save kbinani/4261212 to your computer and use it in GitHub Desktop.
A bootstrap script to install rvm, ruby, and chef.
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 | |
yum install -y \ | |
gcc-c++ \ | |
patch \ | |
readline \ | |
readline-devel \ | |
zlib zlib-devel \ | |
libyaml-devel \ | |
libffi-devel \ | |
openssl-devel \ | |
make \ | |
bzip2 \ | |
autoconf \ | |
automake \ | |
libtool \ | |
bison \ | |
iconv-devel | |
echo 'insecure' >> ~/.curlrc | |
\curl -L https://get.rvm.io | bash -s stable | |
cat ~/.curlrc | grep -v 'insecure' > /tmp/.curlrc.temp | |
mv -f /tmp/.curlrc.temp ~/.curlrc | |
source /etc/profile | |
command rvm install 1.9.3 | |
rvm use 1.9.3 | |
gem install chef | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment