-
-
Save rafamoreira/3173221 to your computer and use it in GitHub Desktop.
Installing Ruby 1.9.3 with OpenSSL on Ubuntu 12.04 using ruby-build and rbenv
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
# For more info: https://gist.github.com/1120938 | |
cd | |
git clone git@github.com:sstephenson/rbenv.git ~/.rbenv | |
# Add rbenv to your PATH | |
echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
# Install ruby-build | |
git clone git@github.com:sstephenson/ruby-build.git | |
cd ruby-build | |
./install.sh | |
# $ which openssl | |
# /usr/bin/openssl | |
# Install Ruby with OpenSSL option | |
rbenv install 1.9.3-p194 --with-openssl-dir=/usr/local | |
# Install shims for all Ruby binaries | |
rbenv rehash | |
# Set default Ruby version | |
rbenv global 1.9.3-p194 | |
# Check Ruby | |
ruby -v #ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] | |
# Check OpenSSL | |
irb | |
require 'openssl' # => true |
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
# for more info: https://gist.github.com/1120938 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment