Skip to content

Instantly share code, notes, and snippets.

@bts
Forked from juno/README.md
Created June 3, 2012 02:18
Show Gist options
  • Save bts/2860999 to your computer and use it in GitHub Desktop.
Save bts/2860999 to your computer and use it in GitHub Desktop.
Install rbenv and ruby-build to Amazon Linux (cloud-init).
  1. run user-data.sh
  2. run install-ruby.sh.
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
asudo apt-get install libssl-dev
ruby-build install 1.9.3-p194 --with-openssl-dir=$(which openssl | sed 's/\/bin.*$//')
rbenv global 1.9.3-p194
#!/bin/sh
sudo apt-get install gcc make
sudo apt-get install zlib1g-dev libreadline-dev
git clone git://github.com/sstephenson/ruby-build.git /tmp/ruby-build
cd /tmp/ruby-build
./install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment