Q:

how to install "readline" for rails console

ok i am trying to run "rails console" command but here's what i get:
/home/user/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
    from /home/user/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/irb/completion.rb:10
    from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands/console.rb:3:in `require'
    from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands/console.rb:3
    from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands.rb:37:in `require'
    from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands.rb:37
    from script/rails:6:in `require'
    from script/rails:6

how can I install "readline" and make it work ?

A:

I know it is too late.
no such file to load -- readline (LoadError)
try adding gem ’rb-readline’ to your Gemfile.)

A:

rvm package has been changed to rvm pkg
It would be nice if the error just told us this! Ugh!

