宝石安装kgio错误 [英] gem install kgio ERROR
问题描述
我已经下载了一个rails开源web应用程序,并且正在使用它:
I've downloaded a rails open source webapp , and while i was starting it using :
C:\Users\admin\Downloads\iCare\icare-develop>rails server
←[31mCould not find kgio-2.8.0 in any of the sources←[0m
←[33mRun `bundle install` to install missing gems.←[0m
我试图用下面的方法修正这个错误:
i tried to fix this error using:
cmd:>gem install kgio -v '2.8.0'
出现错误:
i got the error:
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing kgio:
ERROR: Failed to build gem native extension.C:/Ruby193/bin/ruby.exe extconf.rb
checking for CLOCK_MONOTONIC in time.h... no
checking for CLOCK_MONOTONIC() in time.h... no
checking for clockid_t in time.h... no
checking for clock_gettime() in -lrt... no
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for poll() in poll.h... no
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no
getaddrinfo required
*** 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:/Ruby193/bin/ruby
--with-rtlib
--without-rtlib
--with-nsllib
--without-nsllib
--with-socketlib
--without-socketlib
和
Gem文件将保持安装在C:/Ruby193/lib/ruby/gems/1.9.1/gems/kgio-2.8中。
0用于检查。
记录到C的结果:/Ruby193/lib/ruby/gems/1.9.1/gems/kgio-2.8.0/ext/kgio/gem_ma
ke.out
and Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/kgio-2.8. 0 for inspection. Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/kgio-2.8.0/ext/kgio/gem_ma ke.out
我输入了: bundle install
之后,但没有任何事情发生。
i did type:bundle install
after, but nothing happened..
推荐答案
kgio仅适用于* nix系统。
kgio is only for *nix system.
kgio宝石页面:
the kgio gem page:
kgio 2.8.0 kgio为Ruby提供了非阻塞I / O方法,没有
引发EAGAIN和EINPROGRESS的异常。它打算与独角兽和彩虹一起使用
!机架式服务器,但可能被其他
应用程序(运行于类Unix平台上)使用。
kgio 2.8.0 kgio provides non-blocking I/O methods for Ruby without raising exceptions on EAGAIN and EINPROGRESS. It is intended for use with the Unicorn and Rainbows! Rack servers, but may be used by other applications (that run on Unix-like platforms).
这篇关于宝石安装kgio错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!