msvcrt-ruby18.dll未找到“与Ruby [英] "msvcrt-ruby18.dll was not found" with Ruby

查看:132
本文介绍了msvcrt-ruby18.dll未找到“与Ruby的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行简单的rails命令,如:

When I try to run even simple rails commands such as:

rails -h

几秒钟后我收到一个弹出错误,说:

I get a popup error after a few seconds that says:


ruby​​.exe - 无法找到组件

ruby.exe - Unable To Locate Component

此应用程序无法启动
,因为msvcrt-ruby18.dll不是
找到。重新安装应用程序
可能会解决问题。

This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix the problem.

我正在运行:


  • Windows XP(是的,我知道我应该在Windows机器上尝试ruby)。

  • Ruby 1.9.1p378 [i386-mingw32]。

  • 已将我所有的宝石更新到最新版本(截至2010年7月14日)。

有没有办法我可以测试这个错误是什么?有没有人知道这可能意味着什么?

Is there a way I can test what is making this error? Does anyone know what it could mean?

我发现在我的 ruby​​19 / bin文件夹中有code> msvcrt-ruby191.dll 但是在任何地方都没有 msvcrt-ruby18.dll 。如果我使用ruby 1.9,为什么会这样寻找?

I have found that in my ruby19/bin folder there is msvcrt-ruby191.dll but there is no msvcrt-ruby18.dll anywhere. Why would it be looking for this anyway if I'm using ruby 1.9?

推荐答案

目前的发行版本为与Ruby 1.9不兼容,并在运行时抛出此错误。很容易解决 - 只需确保Rubygems是最新的:

The current release version 1.1.5 of Mongrel is incompatible with Ruby 1.9 and throws this error when it is run. It's easy to solve - just make sure Rubygems is up-to-date:

gem update --system

然后安装新的预发布版本的Mongrel:

Then install the new pre-release version of Mongrel:

gem install mongrel --pre






或者,如果这不是Mongrel引起的,您可以尝试安装 DevKit ,然后尝试这样:

gem install *gemname* --platform=ruby

这将强制使用DevKit从源代码编辑扩展名,并与我尝试过的大多数主要宝石配合使用。

This forces compilation of the extension from source using DevKit and works with most of the major gems I've tried.

这篇关于msvcrt-ruby18.dll未找到“与Ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆