2013-01-25 27 views
7

Tôi đã tải một ray mở webapp nguồn, và trong khi tôi đã bắt đầu nó bằng cách sử:gem install kgio LỖI

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 

tôi đã cố gắng để khắc phục lỗi này bằng:

cmd:>gem install kgio -v '2.8.0' 

tôi đã nhận lỗi:

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 

và Tệp Gem sẽ vẫn được cài đặt trong C: /Ruby193/lib/ruby/gems/1.9.1/gems/kgio-2.8. 0 để kiểm tra. Kết quả được ghi nhận vào C: /Ruby193/lib/ruby/gems/1.9.1/gems/kgio-2.8.0/ext/kgio/gem_ma ke.out

tôi đã loại: bundle install sau đó, nhưng không có gì xảy ra ..

+0

tôi đã thêm những 'và' giữa các phần mã vì tôi không thể gửi câu hỏi của mình – Br3x

Trả lời

14

kg chỉ dành cho hệ thống * nix.

các kgio trang đá quý:

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

u're right; tôi đã thử nó trên ubuntu hầu như cài đặt, và nó hoạt động! – Br3x

+0

vì vậy chúng tôi biết nó cho nền tảng giống như Unix ... làm thế nào điều đó giúp chúng tôi? nếu tôi không muốn cài đặt hầu như ubunto, làm thế nào tôi có thể nhận được nó để đá quý này không cài đặt/không cần thiết? – user1318135

+6

Loại bỏ nó (dòng đá quý "kỳ lân") từ tập tin đá quý của bạn. – Postscripter

0

Tôi nghĩ rằng bạn đang sử dụng hệ điều hành Windows, vì vậy chỉ điều bạn cần phải nhận được đi xe của lỗi này là để nhận xét hoặc xóa gem 'unicorn' trong tệp gem của bạn như thế này i s chỉ cho các hệ thống linux

Các vấn đề liên quan