我正试着在我的系统上使用守卫。使用原样的Gemfile,我只使用
gem 'libnotify', '0.5.9'`
gem 'guard-rspec', '0.5.5'当我运行guard 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会出问题?
发布于 2012-02-16 08:45:11
您使用的是什么版本的libffi?libffi github repo在过去几天中有一个ffi_prep_cif错误,这将导致您看到的失败。昨晚修好了。
https://stackoverflow.com/questions/9253844
复制相似问题