3

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 ?

Lou Franco
  • 87,846
  • 14
  • 132
  • 192
aman
  • 75
  • 3
  • 5

3 Answers3

12

I know it is too late.

no such file to load -- readline (LoadError)

try adding gem ’rb-readline’ to your Gemfile.)

Shamith c
  • 3,719
  • 3
  • 25
  • 33
6

rvm package has been changed to rvm pkg

It would be nice if the error just told us this! Ugh!

0
$ rvm uninstall 1.8.7
$ rvm package install readline
$ rvm install 1.8.7 -C –with-readline-dir=$HOME/.rvm/usr

http://blogs.law.harvard.edu/hoanga/2009/09/08/getting-ruby-191p243-to-work-on-os-x-1058-with-japanese-input-support-on-irb/

andy kim
  • 41
  • 2
  • 1
    when i run "rvm package install readline" i get this "ERROR: Unrecognized command line argument: 'package' ( see: 'rvm usage' )" – aman Sep 01 '11 at 13:58