Wpscan: [ERROR] incompatible library version Ruby

Created on 13 Aug 2016  路  10Comments  路  Source: wpscanteam/wpscan

Sorry to post this in the issues section, but I wanted to know directly which version of Ruby was compatible with WPScan.

Issue:
user@host:~/wpscan$ ruby wpscan.rb
[ERROR] incompatible library version - /home/user/wpscan/vendor/bundle/ruby/2.3.0/gems/ffi-1.9.14/lib/ffi_c.so

I could not find any information in your documentation or via the web/stack. Installed on Xubuntu and I followed both the Ubuntu 14+ and RVM instructions.

Most helpful comment

@cryptodoom could you try

gem uninstall ffi (maybe using sudo if required

and then

gem install ffi

? I think this issue means, your gem was build against another ffi version or smth.

All 10 comments

I'm gonna pitch in my support here, this was originally a Stackoverflow post, I wanted to give some help but the error message is a little cryptic. Maybe it's worth changing the error message to be a little more clear about what's incompatible and how to fix it?

@cryptodoom @joallard ruby 1.9 is end of life. We only support current, supported versions of ruby. The message you see comes from an included gem which also dropped ruby 1.9 support so we can not change this message.
So update to an up to date ruby version (current: 2.3.1)

Huh? It looked like OP is using 2.3.0

@joallard a sorry 1.9.14 is the ffi version. Anyway this error is produced by the ffi gem. I think you are missing a dependency like libffi or smth.

Thanks @FireFart and @joallard for your assistance. I checked on libffi version and it is already the newest version 3.2.1-4.

libffi-dev is already the newest version (3.2.1-4).

user@host:~/wpscan$ ruby wpscan.rb -update
[ERROR] incompatible library version - /home/user/wpscan/vendor/bundle/ruby/2.3.0/gems/ffi-1.9.14/lib/ffi_c.so

I am able to use CMSmap on this machine, however, for WP specific sites it does not compare well against WPScan which is what I would like to use.

I am unfamiliar with using gems or Ruby. Do I have to define in Ruby/Gems which version of ffi I would like to use?

Here are my list of available Gems:
* LOCAL GEMS *

bigdecimal (1.2.8)
bundler (1.12.5)
bundler-unload (1.0.2)
did_you_mean (1.0.0)
executable-hooks (1.3.2)
ffi (1.9.14)
gem-wrappers (1.2.7)
io-console (0.4.5)
json (1.8.3)
minitest (5.8.3)
net-telnet (0.1.1)
power_assert (0.2.6)
psych (2.0.17)
rake (10.4.2)
rdoc (4.2.1)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
test-unit (3.1.5)

Going to run against https://github.com/wpscanteam/wpscan/blob/master/Gemfile

Update:
ran against it and installed the missing Gems, but no change, still getting same error:

Updated Gems:
typhoeus
nokogiri
addressable
yajl-ruby
terminal-table
ruby-progressbar
webmock
simplecov
rspec
rspec-its

@cryptodoom could you try

gem uninstall ffi (maybe using sudo if required

and then

gem install ffi

? I think this issue means, your gem was build against another ffi version or smth.

I also have this issue, and I can't find a solution.
when I try to run wpscan in terminal, I get this error:

[ERROR] incompatible library version - /usr/local/Cellar/wpscan/2.9.3_1/libexec/gems/ffi-1.9.18/lib/ffi_c.bundle

Please help ;)

1 gem uninstall -a
2 gem install bundler
3 bundle install

Mac OSX Sierra 10.12.6

same error

[ERROR] incompatible library version - /usr/local/Cellar/wpscan/2.9.3_5/libexec/gems/ffi-1.9.18/lib/ffi_c.bundle

none of these suggestions have worked

@cryptodoom could you try

gem uninstall ffi (maybe using sudo if required

and then

gem install ffi

? I think this issue means, your gem was build against another ffi version or smth.

This solution works for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

meir555 picture meir555  路  4Comments

jamezlee picture jamezlee  路  11Comments

sayjeyhi picture sayjeyhi  路  6Comments

shell-permission picture shell-permission  路  11Comments

thEpisode picture thEpisode  路  11Comments