Last active
December 25, 2015 14:09
-
-
Save therod/6988886 to your computer and use it in GitHub Desktop.
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 | |
# Install rbenv | |
# https://github.com/sstephenson/rbenv | |
cd ~ | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile | |
echo 'eval "$(rbenv init -)"' >> .bash_profile | |
# reload .bash_profile | |
source ~/.bash_profile | |
# install ruby-build | |
# https://github.com/sstephenson/ruby-build | |
git clone git://github.com/sstephenson/ruby-build.git | |
cd ruby-build | |
sudo ./install.sh | |
# list available ruby versions | |
ruby-build --definitions | |
# install ruby | |
rbenv install 2.0.0-p247 | |
# Install shims for all Ruby binaries | |
rbenv rehash | |
# Set default Ruby version | |
rbenv global 2.0.0-p247 | |
# Check Ruby | |
ruby -v # => 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] | |
# Check OpenSSL | |
irb | |
require 'openssl' # => true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment