Skip to content

Instantly share code, notes, and snippets.

@parkr
Forked from HatemMahmoud/Ubuntu rbenv
Last active December 10, 2015 14:50
Show Gist options
  • Save parkr/4450441 to your computer and use it in GitHub Desktop.
Save parkr/4450441 to your computer and use it in GitHub Desktop.
# For more info: https://gist.github.com/1120938
RBVER="1.9.3-p362"
cd
git clone [email protected]: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 [email protected]:sstephenson/ruby-build.git
cd ruby-build
./install.sh
# $ which openssl
# /usr/bin/openssl
# Install Ruby with OpenSSL option
ruby-build $RBVER ~/.rbenv/versions/$RBVER --with-openssl-dir=/usr/local
# Install shims for all Ruby binaries
rbenv rehash
# Set default Ruby version
rbenv global $RBVER
# Check Ruby
ruby -v #ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
# Check OpenSSL
# irb
# require 'openssl' # => true
# 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