2013-01-25 80 views
7

我已经下载了一个轨道的开源Web应用程序,而我是用启动它:创业板安装kgio ERROR

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 

我试着使用,以修复此错误:

cmd:>gem install kgio -v '2.8.0' 

我得到了错误:

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 

and 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

我没有类型:bundle install后,却什么也没发生..

+0

我在代码部分之间添加了'和',因为我无法提交我的问题 – Br3x

回答

14

kgio仅适用于* nix系统。

的kgio宝石页面:

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).

+0

我是对的;我试过它在虚拟安装的ubuntu上,它的工作原理! – Br3x

+0

所以我们知道它适用于unix平台......这对我们有什么帮助?如果我不想虚拟安装ubunto,我如何获得它,所以这个宝石不安装/不是必需的? – user1318135

+6

从你的宝石文件中删除它(线宝石“独角兽”)。 – Postscripter

0

我认为你正在使用Windows操作系统,所以你唯一需要得到骑这个错误是在你的宝石文件中评论或删除宝石'独角兽'因为这个我s仅适用于linux系统