Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
akast opened this issue Mar 19, 2013 · 3 comments
Closed

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

akast opened this issue Mar 19, 2013 · 3 comments
Labels

Comments

@akast
Copy link

akast commented Mar 19, 2013

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

'

@akast
Copy link
Author

akast commented Mar 19, 2013

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

@erwanlr
Copy link
Member

erwanlr commented Mar 19, 2013

Ok, great and thanks for sharing the solution :)

I keep it open to include the solution in the readme

@hassannak
Copy link

it is a god program

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants