Gem rb-inotify 导致 libffi 错误
我正在尝试在我的系统上使用防护。使用 Gemfile 时,我只使用
gem 'libnotify', '0.5.9'`
gem 'guard-rspec', '0.5.5'
When I runguard bundle execguard
,我得到这个 错误:
/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 运行我的测试规范/请求/static_pages_spec.rb
。现在,如果我按照 这个 Ruby on Rails 教程,并尝试运行我的测试,它们失败并出现与上面相同的错误(ffi_prep_cif 失败)。
当我在 /usr/local/lib
上执行 ls
时,我看到一些 libffi
文件。这会是一个问题吗?谁能解释一下这里发生了什么?为什么 rb-inotify 出现问题?
I'm trying to use guard on my system. With the Gemfile as is, I'm only using
gem 'libnotify', '0.5.9'`
gem 'guard-rspec', '0.5.5'
When I run guard bundle exec guard
, I get this 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)
I can however still run my tests via bundle exec rspec spec/requests/static_pages_spec.rb
. Now if I use the gem gem 'rb-inotify', '0.8.8'
as I'm supposed to according to this Ruby on Rails tutorial, and try to run my tests, they fail with the same error as above (ffi_prep_cif failed).
When I do an ls
on /usr/local/lib
, I see a few libffi
files. Could this be a problem? Can anyone explain what's going on here & why rb-inotify
is acting up?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用的 libffi 版本是什么? libffi github 存储库在过去几天有一个 ffi_prep_cif 错误,这会导致您所看到的失败。昨晚已修复。
What version of libffi are you using? The libffi github repo had a ffi_prep_cif bug these past few days that would have resulted in the failure you're seeing. It was fixed last night.