Re: [問題] gem install rails

看板Ruby作者 (舊舅舅)時間9年前 (2015/04/07 20:16), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串3/3 (看更多)
小弟是用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://www.ptt.cc/bbs/Ruby/M.1428408963.A.4CF.html

04/07 22:52, , 1F
已解決,謝謝!
04/07 22:52, 1F

04/16 04:57, , 2F
因為 openssl 漏洞補起來了,重編ruby
04/16 04:57, 2F
文章代碼(AID): #1L8yg3JF (Ruby)
文章代碼(AID): #1L8yg3JF (Ruby)