gpt4 book ai didi

ruby-on-rails - Windows下的Rails 3 readline问题

转载 作者:行者123 更新时间:2023-12-04 05:09:15 25 4
gpt4 key购买 nike

当我尝试运行 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但这对我没有帮助。

有什么建议吗?

最佳答案

readlineruby stdlib 的外部依赖项之一取决于。 RubyInstaller分发使用 pure-ruby implementation readline 代替 GNU-readline .

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

关于ruby-on-rails - Windows下的Rails 3 readline问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15093224/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com