我正在尝试在Windows计算机上安装puma gem。我收到以下错误。通过了几个论坛,但徒劳无功。
C:/railsInstaller/Ruby2.0.0/bin/ruby.exe extconf.rb
creating Makefile
make
generating puma_http11-i386-mingw32.def
compiling http11_parser.c
ext/http11/http11_parser.rl: In function 'puma_parser_execute':
ext/http11/http11_parser.rl:111:3: warning: comparison between signed and unsigned integer expressions
compiling io_buffer.c
io_buffer.c: In function 'buf_to_str':
io_buffer.c:119:3: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness
c:/RailsInstaller/Ruby2.0.0/include/ruby-2.0.0/ruby/intern.h:668:7: note: expected 'const char *' but argument is of type 'uint8_t *'
compiling mini_ssl.c
In file included from mini_ssl.c:3:0:
c:/RailsInstaller/Ruby2.0.0/include/ruby-2.0.0/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h"
mini_ssl.c:4:25: fatal error: openssl/bio.h: No such file or directory
compilation terminated.
make: *** [mini_ssl.o] Error 1
我已经尝试按照https://github.com/puma/puma/issues/202所述安装openSSL Headers软件包和库,链接不起作用。
我跑了bundle update
过去bundle install
,为我解决了这个问题。
我不确定这是否是唯一的帮助,因为在此之前我使用以下步骤手动更新了puma:
ruby -v -ropenssl -e "puts OpenSSL::OPENSSL_VERSION"
gem install puma -- --with-opt-dir=C:/RailsInstaller/openssl
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句