我正在关注一个教程,并且必须在分叉和安装之后进行捆绑安装。克隆存储库。随后我们被指示运行bundle install。但是,它无法正常工作,我收到以下错误消息:
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 :(得分:0)
尝试gem install eventmachine -v '0.12.10'
或sudo gem install eventmachine -v '0.12.10'
,然后重试bundle install
。
某些gem需要sudo权限才能安装。
对于Windows gem install eventmachine --pre
。它是ruby 1.9窗口的一个已知问题。 https://github.com/eventmachine/eventmachine/issues/319
答案 1 :(得分:0)
我能够通过安装最新版本的Eventmachine gem来解决这个问题:https://rubygems.org/gems/eventmachine
然后安装最新版本的SQLite gem: http://rubygems.org/gems/sqlite3-ruby
可能会提示您更新Gemlockfile,确保执行该操作,然后其他所有内容都可以正常工作。