Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is error:

[ERROR] no such file to load -- readline [TIP] Try to run 'gem install readline' or 'gem install --user-install readline'. If you still get an error, Please see README file or

Then i run those command but again i got error:

ERROR: Could not find a valid gem 'readline' (>= 0) in any repository

those errors i got when i use "ruby wpscan.rb" help me please.

share|improve this question

After command:

sudo gem install rb-readline

I was still getting an error.

I added to the Gemfile

gem "rb-readline" 

And it worked.

share|improve this answer

The readline library for Ruby is called rb-readline. Try

sudo gem install rb-readline

for a system-wide installation, or

gem install --user-install rb-readline

for a local installation inside your user's home directory.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.