2014-03-14 24 views
0

我正在學習一個教程,並且在分發版本庫後,必須執行一個包安裝&的安裝。隨後我們被指示運行軟件包安裝。但是,它不工作,我收到以下錯誤消息:事件機器gem包安裝不起作用

make 
generating rubyeventmachine-i386-mingw32.def 
compiling binder.cpp 
In file included from binder.cpp:20:0: 
project.h:85:0: warning: "FD_SETSIZE" redefined 
<command-line>:0:0: note: this is the location of the previous definition 
compiling cmain.cpp 
In file included from cmain.cpp:20:0: 
project.h:85:0: warning: "FD_SETSIZE" redefined 
<command-line>:0:0: note: this is the location of the previous definition 
cmain.cpp: In function 'int evma_send_file_data_to_connection(long unsigned int, 
const char*)': 
cmain.cpp:752:6: error: 'fstati64' was not declared in this scope 
make: *** [cmain.o] Error 1 


Gem files will remain installed in c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0 
.0/gems/eventmachine-0.12.10 for inspection. 
Results logged to c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/eventmach 
ine-0.12.10/ext/gem_make.out 
An error occurred while installing eventmachine (0.12.10), and Bundler cannot 
continue. 
Make sure that `gem install eventmachine -v '0.12.10'` succeeds before bundling. 

我寧可停留在此時該做什麼。我在Windows機器上,有關如何解決此問題的任何建議?

回答

0

嘗試gem install eventmachine -v '0.12.10'sudo gem install eventmachine -v '0.12.10'然後重試bundle install

某些gem需要安裝sudo權限。

對於窗戶gem install eventmachine --pre。它是一個與紅寶石1.9窗口已知的問題。 https://github.com/eventmachine/eventmachine/issues/319

+0

我做了gem install eventmachine --pre,它成功安裝了一個版本,但未能成功,於是我將gemfile鎖更改爲eventmachine(1.0.0.beta.2),並能夠以這種方式進行捆綁安裝。如果遇到此修復程序的任何問題,我會回來並更新。 – user3408293