ruby 1.9.3 seg fault fix

Ruby.. [BUG] Segmentation fault .. neverending story, such a nightmare..

$ bundle install
Fetching gem metadata from https://rubygems.org/./Users/znouza/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.3.0]

-- Control frame information -----------------------------------------------
c:0041 p:---- s:0226 b:0226 l:000225 d:000225 CFUNC :connect

bundle crashed? using macports? see how to fix this damn issue..

rvm remove 1.9.3
rvm install ruby-1.9.3 --with-openssl-dir=/opt/local --with-iconv-dir=/opt/local
rvm reload
rvm use 1.9.3
bundle install

it assumes you have your openssl from macports installed in /opt/local/ . When it’s somewhere else, just correct the path before.

Leave a Reply

Your email address will not be published. Required fields are marked *

× 4 = 40