简体   繁体   English

如何在Windows上安装ruby gem puma

[英]How to install ruby gem puma on windows

Welcome, gather around. 欢迎光临

My first step when trying to install the gem puma is to enter gem install puma --version 2.12.3 into my command prompt. 尝试安装gem puma时,我的第一步是在命令提示符下输入gem install puma --version 2.12.3。 Then this error appears. 然后出现此错误。 I don't know what to make of it. 我不知道该怎么做。

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

Please help, thank you! 请帮忙,谢谢!

You probably just need OpenSSL, but be warned that some gems just fail to work on Windows. 您可能只需要OpenSSL,但要注意某些gem无法在Windows上运行。

https://github.com/hicknhack-software/rails-disco/wiki/Installing-puma-on-windows https://github.com/hicknhack-software/rails-disco/wiki/Installing-puma-on-windows

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM