报错内容:
/usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1404:in `rescue in block in activate_dependencies': Could not find 'nokogiri' (>= 1.11.4, < 1.13.0) among 125 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/root/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0' at: /usr/share/rubygems-integration/all/specifications/cms_scanner-0.13.6.gemspec, execute `gem env` for more information
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1401:in `block in activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `each'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1372:in `activate'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1408:in `block in activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `each'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1372:in `activate'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:299:in `block in activate_bin_path'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:298:in `synchronize'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:298:in `activate_bin_path'
from /usr/bin/wpscan:25:in `<main>'
/usr/lib/ruby/vendor_ruby/rubygems/dependency.rb:313:in `to_specs': Could not find 'nokogiri' (>= 1.11.4, < 1.13.0) - did find: [nokogiri-1.16.0] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/root/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0' , execute `gem env` for more information
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1402:in `block in activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `each'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1372:in `activate'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1408:in `block in activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `each'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1372:in `activate'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:299:in `block in activate_bin_path'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:298:in `synchronize'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:298:in `activate_bin_path'
from /usr/bin/wpscan:25:in `<main>'
遇到问题后参考前辈的解决方式
apt remove wpscan -y apt-get autoremove -y apt-get autoclean hash -r apt install ruby-dev -y gem install wpscan标签:among,rubygems,1.13,lib,报错,usr,rb,vendor,ruby From: https://www.cnblogs.com/Aryyj/p/18131505
但是在最后gem安装的时候卡住了
没关系直接
wpscan --help
按照提示下载就好
参考链接:https://www.cnblogs.com/pcat/p/12820570.html