我对 Ruby、Git 和 Heroku 非常陌生,我正在尝试在我的 Window 7 机器上进行所有设置。第一个错误很容易通过编辑几个heroku文件以包含rest-client gem来修复,但现在我得到了这个错误,我无法使用“google it”方法解决它:
C:\rails\first_app>heroku login
DL is deprecated, please use Fiddle
Enter your Heroku credentials.
Email: foo
Password (typing will be hidden): C:/ruby/lib/ruby/2.0.0/Win32API.rb:14:in `init
ialize': No such file or directory (LoadError)
from C:/ruby/lib/ruby/2.0.0/Win32API.rb:14:in `dlopen'
from C:/ruby/lib/ruby/2.0.0/Win32API.rb:14:in `initialize'
from C:/ruby/lib/ruby/gems/2.0.0/gems/heroku-3.0.1/lib/heroku/auth.rb:19
7:in `new'
from C:/ruby/lib/ruby/gems/2.0.0/gems/heroku-3.0.1/lib/heroku/auth.rb:19
7:in `ask_for_password_on_windows'
from C:/ruby/lib/ruby/gems/2.0.0/gems/heroku-3.0.1/lib/heroku/auth.rb:18
7:in `ask_for_credentials'
from C:/ruby/lib/ruby/gems/2.0.0/gems/heroku-3.0.1/lib/heroku/auth.rb:22
1:in `ask_for_and_save_credentials'
from C:/ruby/lib/ruby/gems/2.0.0/gems/heroku-3.0.1/lib/heroku/auth.rb:84
:in `get_credentials'
from C:/ruby/lib/ruby/gems/2.0.0/gems/heroku-3.0.1/lib/heroku/auth.rb:41
:in `login'
from C:/ruby/lib/ruby/gems/2.0.0/gems/heroku-3.0.1/lib/heroku/command/au
th.rb:31:in `login'
from C:/ruby/lib/ruby/gems/2.0.0/gems/heroku-3.0.1/lib/heroku/command.rb
:213:in `run'
from C:/ruby/lib/ruby/gems/2.0.0/gems/heroku-3.0.1/lib/heroku/cli.rb:28:
in `start'
from C:/ruby/lib/ruby/gems/2.0.0/gems/heroku-3.0.1/bin/heroku:17:in `<to
p (required)>'
from C:/ruby/bin/heroku:23:in `load'
from C:/ruby/bin/heroku:23:in `<main>'
任何帮助将不胜感激。
编辑:
它是 ruby 2.0.0 的 64 位版本。
嗯,我想我必须安装 32 位版本,直到这个问题得到解决。谢谢你的链接。