Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Installing Ruby 1.9.2 with OpenSSL on Ubuntu 11.04 using ruby-build and rbenv

View Ubuntu rbenv
1
# for more info: https://gist.github.com/1120938
View Ubuntu rbenv
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
# 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"' >> ~/.bash_profile
 
# 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
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
irb
require 'openssl' # => true

Thanks for this gist. It's odd that the --with-openssl-dir parameter needs /usr/local/ considering there's nothing about OpenSSL in there via the Ubuntu packages.

Yes this is clearly partial...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.