2

当我尝试运行 rails 控制台时,出现错误:

C:/ruby/Ruby193/lib/ruby/1.9.1/irb/completion.rb:9:in `require': cannot load suc
h file -- readline (LoadError)
        from C:/ruby/Ruby193/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (requir
ed)>'
        from C:/ruby/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/c
ommands/console.rb:3:in `require'
        from C:/ruby/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/c
ommands/console.rb:3:in `<top (required)>'
        from C:/ruby/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/c
ommands.rb:38:in `require'
        from C:/ruby/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/c
ommands.rb:38:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'

我已经从http://gnuwin32.sourceforge.net/packages/readline.htm安装了 readline,但它对我没有帮助。

有什么建议么?

4

1 回答 1

3

readline是依赖的外部依赖项之一ruby stdlib。RubyInstaller发行版使用 readline 的纯 ruby​​ 实现代替GNU-readline

如果您最初没有使用 RubyInstaller 安装,我建议您使用它重新安装。它为您处理所有类似的外部依赖项。

于 2013-02-26T20:38:24.647 回答