Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I am using rails console command something like this is happening:

peeyush@peeyush-WS:~/issues$ rails console
/home/peeyush/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/irb/completion.rb:9:in `require': cannot load such file -- readline (LoadError)
    from /home/peeyush/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (required)>'
    from /home/peeyush/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands/console.rb:3:in `require'
    from /home/peeyush/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands/console.rb:3:in `<top (required)>'
    from /home/peeyush/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:38:in `require'
    from /home/peeyush/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:38:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
share|improve this question
What version of rails are you using rails --version? Also, have you tried deleting the ~/.rvm directory? Try rm -rf ~/.rvm. –  Braiam Aug 3 '13 at 0:23

Your Answer


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

Browse other questions tagged or ask your own question.