-
-
Save ovargas27/4063528 to your computer and use it in GitHub Desktop.
Installing Ruby 1.9.3 with OpenSSL on Debian 6.0.6 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
sudo aptitude install -y \ | |
build-essential zlib1g-dev \ | |
libssl-dev openssl \ | |
libreadline-dev \ | |
sqlite3 libsqlite3-dev \ | |
libxslt-dev libxml2-dev \ | |
curl wget git-core | |
# For more info: https://gist.github.com/1120938 | |
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 ~/.rbenv/plugins/ruby-build | |
# Add ruby-build your path | |
echo 'export PATH="$HOME/.rbenv/plugins:$PATH"' >> ~/.bash_profile | |
# $ which openssl | |
# /usr/bin/openssl | |
# Install Ruby with OpenSSL option | |
export CONFIGURE_OPTS=--with-openssl-dir='/usr/bin' | |
rbenv install 1.9.3-p327 | |
// ruby-build 1.9.2-p290 ~/.rbenv/versions/1.9.2-p290 --with-openssl-dir=/usr/bin | |
# Install shims for all Ruby binaries | |
rbenv rehash | |
# Set default Ruby version | |
rbenv global 1.9.3-p327 | |
# Check Ruby | |
ruby -v #ruby 1.9.2p290 (2011-07-09 revision 32553) [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