简体   繁体   English

Ruby 1.9.2 + heroku gem + rails 3 + windows

[英]Ruby 1.9.2 + heroku gem + rails 3 + windows

On my windows computer, I installed Ruby 1.9.2 and Rails 3.0.3 successfully. 在我的Windows计算机上,我成功安装了Ruby 1.9.2和Rails 3.0.3。 I then installed the the heroku gem (gem install heroku), version 1.17.10, and it installed fine. 然后我安装了heroku gem(gem install heroku),版本1.17.10,它安装得很好。 When I tried to run "heroku version", it gave me a message, "This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix this problem." 当我尝试运行“heroku版本”时,它给了我一条消息,“此应用程序无法启动,因为找不到msvcrt-ruby18.dll。重新安装应用程序可能会解决此问题。”

Can anybody tell me what to do now? 谁能告诉我现在该怎么办? I appreciate any help that I can get. 我感谢任何帮助。

One of the gems that you have installed has been compiled for Ruby 1.8.x and not Ruby 1.9.x 您安装的宝石之一已经为Ruby 1.8.x而不是Ruby 1.9.x编译

The binary part (extension) link against the Ruby shared library (DLL) of that version, so msvcrt-ruby18.dll 二进制部分(扩展名)链接该版本的Ruby共享库(DLL),因此msvcrt-ruby18.dll

For them to work on Ruby 1.9.x, they need to also include the binary extension that links against to the shared library of Ruby 1.9.x 要让他们使用Ruby 1.9.x,他们还需要包含链接到Ruby 1.9.x共享库的二进制扩展。

There are two known gems that present this issue: JSON and win32-api. 有两个已知的宝石提出了这个问题:JSON和win32-api。

This has been discussed on RubyInstaller group several times: 这已在RubyInstaller组上多次讨论过:

Issues with win32-api (and instructions) win32-api的问题(和说明)

In that link will find also instructions how to solve JSON gem too. 在该链接中还将找到如何解决JSON gem的说明。

To install the RubyInstaller DevKit, please go to our downloads page and once you obtain the binary, follow the instructions in our wiki 要安装RubyInstaller DevKit,请转到我们的下载页面 ,一旦获得二进制文件,请按照我们的wiki中的说明进行操作

Since you haven't provided exact output of the error, I'm doing my best to guess what is the issue. 由于您没有提供错误的确切输出,我正在尽力猜测问题是什么。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM