Rails 为什么 Rails 打不开控制器 cannot load such file -- readline

ywb · 2014年11月20日 · 最后由 yutian 回复于 2014年11月20日 · 2491 次阅读
/home/imedia/.rbenv/versions/2.1.0/lib/ruby/2.1.0/irb/completion.rb:9:in `require': cannot load such file -- readline (LoadError)
    from /home/imedia/.rbenv/versions/2.1.0/lib/ruby/2.1.0/irb/completion.rb:9:in `<top (required)>'
    from /home/imedia/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/console.rb:3:in `require'
    from /home/imedia/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/console.rb:3:in `<top (required)>'
    from /home/imedia/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:128:in `require'
    from /home/imedia/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:128:in `require_command!'
    from /home/imedia/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:59:in `console'
    from /home/imedia/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
    from /home/imedia/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:8:in `require'
    from bin/rails:8:in `<main>'
需要 登录 后方可回复, 如果你还没有账号请 注册新账号