Skip to content

Instantly share code, notes, and snippets.

@mtchavez
Created March 20, 2013 19:09
Show Gist options
  • Save mtchavez/5207518 to your computer and use it in GitHub Desktop.
Save mtchavez/5207518 to your computer and use it in GitHub Desktop.
Ruby OpenSSL fix OSX 10.8.x Ruby 1.9.3
# Install requirements from rvm requirements
# Make sure apple-gcc42 is installed
# Get RVM self contained readline and openssl
rvm pkg install readline openssl
# Install Ruby with compiler flags passed
rvm install 1.9.3 -C "--with-gcc=gcc-4.2,--with-readline-dir=$rvm_path/usr,--with-openssl-dir=$rvm_path/usr"
# Install updated cert and move into RVM openssl dir
cd $rvm_path/usr/ssl
curl -O http://curl.haxx.se/ca/cacert.pem
mv cacert.pem cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment