$ which openssl
/usr/local/bin/openssl

$ ruby -v
ruby 2.0.0p481

$ openssl version
OpenSSL 1.0.2d 9 Jul 2015

An error occurred while installing puma (2.11.0), and Bundler cannot continue.
Make sure that `gem install puma -v '2.11.0'` succeeds before bundling.

環境構築をする際に、pumaのインストールで躓いております。

調べていると似たような問題を抱えている人がいたため、それを元に実行していたのですが、
結果的にはダメでした。

https://stackoverflow.com/questions/27465544/cannot-build-puma-gem-on-os-x-yosemite

https://stackoverflow.com/questions/30143180/puma-gem-failed-to-build-gem-native-extension

https://stackoverflow.com/questions/20294199/cannot-install-puma-gem-on-ruby-on-rails

ssl周りのエラーなのかと思い以下も実行しました。

$ brew link openssl --force
$ brew upgrade openssl

どなたか原因がわかる方がいらっしゃいましたら、ご助言いただけないでしょうか?

宜しくお願いします。

エラー文言

Building native extensions.  This could take a while...
ERROR:  Error installing puma:
        ERROR: Failed to build gem native extension.

    /Users/home/sandbox/usr/bin/ruby extconf.rb
checking for SSL_CTX_new() in -lssl... no
checking for SSL_CTX_new() in -lssleay32... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/Users/home/sandbox/usr/bin/ruby
        --with-puma_http11-dir
        --without-puma_http11-dir
        --with-puma_http11-include
        --without-puma_http11-include=${puma_http11-dir}/include
        --with-puma_http11-lib
        --without-puma_http11-lib=${puma_http11-dir}/lib
        --with-ssllib
        --without-ssllib
        --with-ssleay32lib
        --without-ssleay32lib

extconf failed, exit code 1

Gem files will remain installed in /Users/home/sandbox/usr/lib/ruby/gems/2.1.0/gems/puma-2.10.2 for inspection.
Results logged to /Users/home/sandbox/usr/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0/puma-2.10.2/gem_make.out