Skip to content

Instantly share code, notes, and snippets.

@nzajt
Forked from darrinholst/amazon-linux.erb
Last active December 15, 2015 00:28
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 nzajt/5173000 to your computer and use it in GitHub Desktop.
Save nzajt/5173000 to your computer and use it in GitHub Desktop.
# --------------------------------------------------------
# Update It
#---------------------------------------------------------
sudo yum -y update
# --------------------------------------------------------
# Packages
# --------------------------------------------------------
sudo yum -y install openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel
# --------------------------------------------------------
# git
# --------------------------------------------------------
yum -y install git
# --------------------------------------------------------
# ruby 1.9.3
# --------------------------------------------------------
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
exec $SHELL -l
rbenv rehash
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 1.9.3-p392
exec $SHELL -l
rbenv rehash
rbenv global 1.9.3-p392
# --------------------------------------------------------
# Bundler
# --------------------------------------------------------
gem install bundler --no-rdoc --no-ri
# --------------------------------------------------------
# chef-client
# --------------------------------------------------------
gem install ohai --no-rdoc --no-ri
gem install chef ruby-shadow --no-ri --no-rdoc --no-rdoc --no-ri
# -------------------------------------------------------
# Restart Bash
# -------------------------------------------------------
exec $SHELL -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment