I’ve noticed that when generating a new rails project, the Gemfile now defaults to:
source 'https://rubygems.org'
instead of
source 'http://rubygems.org'
and now bundle install fails for me. When it attempts to run, I get:
/Users/<my user name>/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault
If I manually change the Gemfile to http, then bundle install performs fine.
Is there an error with my setup (I’ve replicated this on two different boxes), or is there another issue I’m not aware of?
You’re probably using MacPorts. It installs its own version of openssl, in addition to your local openssl, which causes issues. If that’s the case, follow these instructions: