2013-03-07 94 views
0

更新它開始通過自己的工作後,我重新啓動窗口着登錄到Heroku的紅寶石2.0

我最近安裝了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>' 

回答

1
sudo apt-get install libreadline-dev 

然後添加到您的Gemfile:

gem 'rb-readline' 
+0

現在怎麼這是可能的Windows機器上 – benchwarmer 2013-03-07 06:48:32

+0

http://gnuwin32.sourceforge.net/packages/readline.htm使用該鏈接 – 2013-03-07 07:23:12

0

它看起來像你使用Heroku寶石?如果是這樣,請使用Heroku Toolbelt

+0

我已經安裝,它工作正常後,我重新啓動我的機器 – Lordking 2013-03-07 19:15:34

+0

兩者?你的機器使用哪一個?該寶石已棄用。 – catsby 2013-03-07 19:45:29

+0

我安裝了工具帶,然後做了寶石安裝heroku ..有什麼錯? – Lordking 2013-03-07 20:12:55