pumaをインストールできない

Slack に Ruby 製 Bot の Lita を参加させるを読んで「コレだ!(思いつき)」となってハマったお話

Ruby2.0は32bitを使った
色々試したから、どれが有効打なのかわからん

C:\Users\kenmi_000\Documents\Heroku>gem install lita
Fetching: thor-0.19.1.gem (100%)
Successfully installed thor-0.19.1
Fetching: redis-3.2.1.gem (100%)
Successfully installed redis-3.2.1
Fetching: redis-namespace-1.5.2.gem (100%)
Successfully installed redis-namespace-1.5.2
Fetching: rb-readline-0.5.3.gem (100%)
Successfully installed rb-readline-0.5.3
Fetching: rack-1.6.4.gem (100%)
Successfully installed rack-1.6.4
Fetching: puma-2.12.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing lita:
ERROR: Failed to build gem native extension.

C:/Ruby222/bin/ruby.exe -r ./siteconf20150715-6380-xit26t.rb extconf.rb
checking for BIO_read() in -lcrypto... no
checking for BIO_read() in -llibeay32... 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
--without-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=C:/Ruby222/bin/$(RUBY_BASE_NAME)
--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-cryptolib
--without-cryptolib
--with-libeay32lib
--without-libeay32lib

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby222/lib/ruby/gems/2.2.0/gems/puma-2.12.0 for inspection.
Results logged to C:/Ruby222/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/puma-2.12.0/gem_make.out

pumaでこけている。opensslが見つかっていない

とりあえず

C:\Users\kenmi_000\Documents\Heroku>gem install -v 2.2 rubygems-update
Fetching: rubygems-update-2.2.0.gem (100%)
Successfully installed rubygems-update-2.2.0
Parsing documentation for rubygems-update-2.2.0
Installing ri documentation for rubygems-update-2.2.0
1 gem installed

pumaをオプション指定していれるけど、謎エラー

C:\Users\kenmi_000\Documents\Heroku>gem install puma --platform=ruby -- --with-opt-dir=c:\openssl
Building native extensions with: '--with-opt-dir=c:\openssl'
This could take a while...
ERROR: Error installing puma:
ERROR: Failed to build gem native extension.

C:/Ruby200/bin/ruby.exe extconf.rb --with-opt-dir=c:\openssl
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
creating Makefile

make "DESTDIR="
(エラーいっぱい)

pumaを「bundle install」付きで試すと入った!

C:\Users\kenmi_000\Documents\Heroku>gem install puma -v '2.9.1' -- --with-opt-dir=c:\openssl bundle install
Fetching: rack-1.6.4.gem (100%)
Successfully installed rack-1.6.4
Fetching: puma-2.9.1.gem (100%)
Building native extensions with: '--with-opt-dir=c:\openssl bundle install'
This could take a while...
Successfully installed puma-2.9.1
Parsing documentation for rack-1.6.4
Installing ri documentation for rack-1.6.4
Parsing documentation for puma-2.9.1
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/puma/puma_http11.so, skipping
Installing ri documentation for puma-2.9.1
2 gems installed