- run
user-data.sh
- run
install-ruby.sh
.
-
-
Save bts/2860999 to your computer and use it in GitHub Desktop.
Install rbenv and ruby-build to Amazon Linux (cloud-init).
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
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 |
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/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