Rails Segmentation Fault on Mac OSX with RVM

后端 未结 4 1977
后悔当初
后悔当初 2020-12-03 08:56

When creating a new rails app, I get the following error:

/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault
ruby         


        
4条回答
  •  渐次进展
    2020-12-03 09:33

    I googled around for this problem and found the following magic incantations:

    rvm pkg install openssl
    rvm reinstall 1.9.3 --with-openssl-dir=$rvm_path/usr
    

    Sorry to not link back to a source but I can't remember which website had the winning formula. The gist of it is that ruby links against a bad version of openssl so doing it this way makes rvm install its own version of openssl and link ruby against that.

提交回复
热议问题