【发布时间】:2012-02-16 08:45:10
【问题描述】:
我正在尝试在我的系统上使用防护。使用 Gemfile 原样,我只使用
gem 'libnotify', '0.5.9'`
gem 'guard-rspec', '0.5.5'
当我运行警卫bundle exec guard 时,我得到了这个error:
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi.rb:11:in
`require': ffi_prep_cif failed. status=0x2 (fatal)
不过,我仍然可以通过 bundle exec rspec spec/requests/static_pages_spec.rb 运行我的测试。现在,如果我按照this Ruby on Rails tutorial 的要求使用 gem gem 'rb-inotify', '0.8.8',并尝试运行我的测试,它们会因与上述相同的错误而失败(ffi_prep_cif 失败)。
当我对/usr/local/lib 执行ls 时,我看到了一些libffi 文件。这会是个问题吗?任何人都可以解释这里发生了什么以及为什么rb-inotify 在起作用吗?
【问题讨论】:
标签: ruby-on-rails ruby guard