作者oldjojotenya (旧舅舅)
看板Ruby
标题Re: [问题] gem install rails
时间Tue Apr 7 20:16:00 2015
小弟是用mac OSX10.9.5,用rbenv装了ruby2.2.0,rails版本目前是4.0.3,想要升级
到rails4.2,但在用gem安装时遇到了以下问题,可以请教如何解决嘛?谢谢
$ gem install rails --version=4.2
ERROR: Loading command: install (LoadError)
dlopen(/Users/jojotenya/.rbenv/versions/2.2.0-dev/lib/ruby/2.2.0/x86_64-darwin13.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method
Referenced from: /Users/jojotenya/.rbenv/versions/2.2.0-dev/lib/ruby/2.2.0/x86_64-darwin13.0/openssl.bundle
Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
in /Users/jojotenya/.rbenv/versions/2.2.0-dev/lib/ruby/2.2.0/x86_64-darwin13.0/openssl.bundle - /Users/jojotenya/.rbenv/versions/2.2.0-dev/lib/ruby/2.2.0/x86_64-darwin13.0/openssl.bundle
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.115.236.39
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Ruby/M.1428408963.A.4CF.html
1F:→ oldjojotenya: 已解决,谢谢! 04/07 22:52
2F:推 david50407: 因为 openssl 漏洞补起来了,重编ruby 04/16 04:57