Ruby FFI宝石问题 [英] Ruby ffi gem issue
问题描述
我安装了 wpscan
-一个用于在Wordpress网站上查找安全问题的Ruby程序.但是当我尝试运行它时,我收到以下消息:
I installed wpscan
- a Ruby programm for finding security issues on Wordpress sites. But when I tried to run it I got the following message:
[ERROR] dlopen(/Library/Ruby/Gems/2.0.0/gems/ffi-1.9.2/lib/ffi_c.bundle, 9): Library not loaded: /Users/headius/.rvm/rubies/ruby-head/lib/libruby.2.1.0.dylib
Referenced from: /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.2/lib/ffi_c.bundle
Reason: image not found - /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.2/lib/ffi_c.bundle
我的操作系统是OS X Mavericks,但是我没有名称为 headius
和文件夹 .rvm
的用户.我尝试几次重新安装 ffi
gem,但没有任何改变.我知道 ffi_c.bundle
出了点问题,但这是一个二进制文件,我不知道如何在其中修复 libruby.2.1.0.dylib
的路径
My operating system is OS X Mavericks, but I don't have user with name headius
and folder .rvm
. I tried to reinstall ffi
gem several times but nothing changed. I know that something wrong with ffi_c.bundle
but this is a binary file and I don't know how to fix the path to libruby.2.1.0.dylib
in it.
那么,有人知道如何解决此问题吗?
So, does anybody know how to fix this issue?
推荐答案
这是一个糟糕的FFI版本(1.9.2),因为它不小心将我的OS X捆绑包扫入了已发布的gem中.1.9.2宝石已被拉紧,而1.9.3取代了它.
This was a bad FFI release (1.9.2) because it accidentally swept up my OS X bundle into the released gem. The 1.9.2 gem has been yanked and 1.9.3 replaces it.
这篇关于Ruby FFI宝石问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!