尝试安装gem puma的第一步是在命令提示符中输入gem install puma --version2.12.3。然后出现此错误。我不知道该怎么理解它。
C:\Users>gem install puma --version 2.12.3
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing puma:
ERROR: Failed to build gem native extension.
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20150809-8352-14jkju1.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:/Ruby22-x64/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:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/puma-2
.12.3 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0
/puma-2.12.3/gem_make.out一旦我收到这封信,我就会按照下面的指示https://github.com/hicknhack-software/rails-disco/wiki/Installing-puma-on-windows
我收到了这个错误:
C:\Users>gem install puma -- --with-opt- dir=c:\
openssl
ERROR: Loading command: install (LoadError)
127: The specified procedure could not be found. - C:/Ruby22-x64/lib/r
uby/2.2.0/x64-mingw32/openssl.so
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass附注:这是mkmf.log
mkmf.log
请帮帮我!谢谢!
发布于 2015-08-10 12:22:54
我想我已经找到你问题的答案了。Here the link
您必须下载OpenSSL库。有两种类型的OpenSSL库,一种用于32位,另一种用于64位。
安装它们后,运行gem install puma -- --with-opt-dir=D:\openssl
--with-opt-dir=D:\openssl是您下载lib的文件夹方向。
有些教程有指向openssl的链接,openssl是用于32位计算机的。在几次失败之后,我意识到了这一点。然后我已经下载了64位版本。
https://stackoverflow.com/questions/31908402
复制相似问题