gem buildで作成したgemファイルをinstallする際に、エラーメッセージがでてinstallに失敗してしまったので、対応・・?しました。
エラーメッセージ
$ gem install recruit_api.gemspec $
ERROR: Loading command: install (LoadError)
dlopen(/Users/Kikeda/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method
Referenced from: /Users/Kikeda/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
in /Users/Kikeda/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle - /Users/Kikeda/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
対策
ruby 2.1.0ではなく、ruby 2.1.2以上を使うことで解決しているようですね。
$ rbenv global 2.1.3 $ gem install recruit_api-0.0.1.gem => Successfully installed recruit_api-0.0.1 => 1 gem installed
参考
openssl - Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError) - Stack Overflow
「gem install pg」を実行すると「Symbol not found: _SSLv2_client_method」エラーが出て先に進めません。|teratail
以上