0

更新我重新启动Windows后它开始自行工作

我最近安装了 ruby​​ 2.0 和 heroku,但是每次我尝试登录 heroku 时,我都会收到以下错误

C:\kick\app\app>heroku login
C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such f
ile -- readline (LoadError)
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/heroku-2.35.0/lib/heroku/command/run.rb:1:in `<top (requir
ed)>'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/heroku-2.35.0/lib/heroku/command.rb:14:in `block in load'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/heroku-2.35.0/lib/heroku/command.rb:13:in `each'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/heroku-2.35.0/lib/heroku/command.rb:13:in `load'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/heroku-2.35.0/lib/heroku/cli.rb:27:in `start'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/heroku-2.35.0/bin/heroku:17:in `<top (required)>'
        from C:/Ruby200/bin/heroku:23:in `load'
        from C:/Ruby200/bin/heroku:23:in `<main>'
4

2 回答 2

1
sudo apt-get install libreadline-dev

然后添加到您的 Gemfile:

gem 'rb-readline'
于 2013-03-07T06:23:21.647 回答
0

看起来您正在使用 Heroku gem?如果是这样,请使用Heroku Toolbelt

于 2013-03-07T17:17:50.593 回答