TheEricMiller
TheEricMiller

Reputation: 373

Updating OpenSSL on OSx 10.8.3 Mountain Lion

Okay, so I have a fresh install and a clean slate...

What is the proper way to update OpenSSL from scratch on OSx 10.8.3?

Nothing is installed yet, but after I can get OpenSSL updated to v1+ I usually go with the standard: RailsInstaller.org ..... or should I be doing Homebrew/RVM first to setup rails?

Things like http://railsapps.github.com/rails-composer/ have issues without the updated OpenSSL and their recommendations don't seem to to the trick. http://railsapps.github.com/openssl-certificate-verify-failed.html

I have tried many ways without luck. Lot's of discussion/suggestions out there but would like to get it right one the first time without messing anything else up this time. Is it maybe that there is a line that requires sudo? If we can get a solid answer I'd like to get it out there to the rest of the community.

System: 15" MacBookPro Retina (2013) with OSx 10.8.3 Mountain Lion

Upvotes: 0

Views: 1903

Answers (2)

fearless_fool
fearless_fool

Reputation: 35149

A little late to the party...but the following non-rvm approach works for me:

  • pull and unzip sources from http://openssl.org/
  • ./Configure darwin64-x86_64-cc
  • make
  • make test
  • sudo make install

This will put the executable in /usr/local/ssl/bin/openssl, so add this to your path (e.g. in .bash_profile:

export PATH="/usr/local/ssl/bin:$PATH"

And you may need to recompile ruby in order to pick up the changes.

Upvotes: 2

mpapis
mpapis

Reputation: 53158

Use RVM 1.19:

\curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enable

It will use existing package manager (fallback to Homebrew), install all requirements for ruby and ruby itself, right now it is MRI Ruby 2.0.0-p0

Follow instructions given from the installer, then:

rvm use ruby
ruby -v

Upvotes: 0

Related Questions