我知道有几个相关的帖子,我尝试了几种解决方案。
我已经审查并尝试过以下方面的消息:
Cannot install Puma gem on Ruby on Rails, puma在github上发布202, puma在github上发布424,和 hicknhack软件/导轨迪斯科/维基/安装,彪马在窗口 还有一些其他来源,我无法发布完整的链接,因为我没有代表。
我知道需要下载openssl并在gem install命令中引用它。我已经下载并尝试了各种版本的openssl,我使用的最后一个是来自http://indy.fulgan.com/SSL/的1040064 openssl-1.0.2a-i386-win32.zip
我正在跑步:
版本ruby = ruby 2.0.0p598(2014-11-13)[i386-mingw32]
rails版本= 4.1.8
Windows 7,64位
完全错误:
Jon@JON-PC /c/with_forked_on_4_8 (master)
$ gem install puma -- --with-opt-dir=c:\openssl
Temporarily enhancing PATH to include DevKit...
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:/RailsInstaller/Ruby2.0.0/bin/ruby.exe extconf.rb --with-opt-dir=c:openssl
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
--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:/RailsInstaller/Ruby2.0.0/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}/
--with-cryptolib
--without-cryptolib
--with-libeay32lib
--without-libeay32lib
Gem files will remain installed in c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0
.0/gems/puma-2.11.1 for inspection.
Results logged to c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/puma-2.11
.1/ext/puma_http11/gem_make.out