Skip to content

Instantly share code, notes, and snippets.

Forked from HatemMahmoud/Ubuntu rbenv
Created November 6, 2011 15:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Installing Ruby 1.9.2 with OpenSSL on Ubuntu 11.04 using ruby-build and rbenv
# For more info:
git clone ~/.rbenv
# Add rbenv to your PATH
echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"' >> ~/.bash_profile
# Install ruby-build
git clone
cd ruby-build
# $ which openssl
# /usr/bin/openssl
# Install Ruby with OpenSSL option
ruby-build 1.9.2-p290 ~/.rbenv/versions/1.9.2-p290 --with-openssl-dir=/usr/local
# Install shims for all Ruby binaries
rbenv rehash
# Set default Ruby version
rbenv global 1.9.2-p290
# Check Ruby
ruby -v #ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
# Check OpenSSL
require 'openssl' # => true
# for more info:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment