gemでエラーが出たのでRubyのバージョンを2.1.1→2.1.0にした

[shell]
$ sudo update_rubygems
[/shell]

[shell]
rbenv: update_rubygems: command not found

The `update_rubygems’ command exists in these Ruby versions:
1.9.3-p392
1.9.3-p429
[/shell]

[shell]
$ sudo gem update
ERROR: Loading command: update (LoadError)
dlopen(/Users/takeshita/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin14.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method
Referenced from: /Users/takeshita/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin14.0/openssl.bundle
Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
in /Users/takeshita/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin14.0/openssl.bundle – /Users/takeshita/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin14.0/openssl.bundle
ERROR: While executing gem … (NoMethodError)
undefined method `invoke_with_build_args’ for nil:NilClass
[/shell]

ネットで調べても分からなくて・・・
Rubyのバージョンを2.1.1から2.1.0へと変更したらとりあえず大丈夫になりました。

[shell]
$ rbenv global 2.1.0
$ sudo update_rubygems
[/shell]

鹿児島県の出水市という所に住んでいまして、インターネット周辺で色々活動して行きたいと思ってるところです。 Webサイト作ったり、サーバ設定したり、プログラムしたりしている、釣りと木工好きなMacユーザです。 今はデータサイエンスに興味を持って競馬AI予想を頑張ってます。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

コメントする

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください