wpscanteam / wpscan

WPScan WordPress security scanner. Written for security professionals and blog maintainers to test the security of their WordPress websites. Contact us via contact@wpscan.com

Home Page:https://wpscan.com/wordpress-cli-scanner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

158:in `require': no such file to load -- rubygems (LoadError)

akast opened this issue · comments

hi , I followed the installation steps in the http://wpscan.org/ to install in my ubuntu , but i got this error , what's going on ?

root@Magicbox:/magicbox/wpscan# ./wpscan.rb
internal:gem_prelude:158:in require': no such file to load -- rubygems (LoadError) from <internal:gem_prelude>:158:inload_full_rubygems_library'
from internal:gem_prelude:270:in const_missing' from /magicbox/wpscan/lib/environment.rb:23:in<top (required)>'
from /magicbox/wpscan/lib/common/common_helper.rb:53:in require' from /magicbox/wpscan/lib/common/common_helper.rb:53:in<top (required)>'
from /magicbox/wpscan/lib/wpscan/wpscan_helper.rb:20:in require' from /magicbox/wpscan/lib/wpscan/wpscan_helper.rb:20:in<top (required)>'
from ./wpscan.rb:24:in require' from ./wpscan.rb:24:in

'

I have solved this problem,

Run this command: update-alternatives --config ruby
and select ruby1.9.1 version

  • 1 /usr/bin/ruby1.9.1 51

Ok, great and thanks for sharing the solution :)

I keep it open to include the solution in the readme

it is a god program