Nisdom. As opposed to Wisdom.

The problem with the future is that it keeps turning into the present.

Ruby http.rb Segmentation Fault Solution for OSX

| Comments

If you are getting segmentation faults from your Ruby interpreter (either 1.8.6, 1.9.2 or 1.9.3) on your OSX development machine, and your code is touching some https endpoints, they are probably caused by faulty macports openssl installation (problem is described here in more details). To solve it, just build openssl from source and rebuild Ruby by specifying path to openssl. I am using rvm to manage different Ruby versions on my machine:

rvm pkg install openssl
rvm uninstall 1.9.2
rvm install 1.9.2 --with-openssl-dir=$HOME/.rvm/usr


« Farewell to OCZ Vertex 2 neo4j tweaks »