Ruby http.rb segmentation fault solution for OSX

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

83 Words

2012-11-23 08:15 +0100

comments powered by Disqus