“找不到 msvcrt-ruby18.dll"红宝石 [英] "msvcrt-ruby18.dll was not found" with Ruby

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

问题描述

当我尝试运行简单的 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].
  • 已将我所有的 gem 更新到最新版本(截至 2010 年 7 月 14 日).

有什么方法可以测试导致此错误的原因吗?有谁知道这意味着什么?

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

我发现在我的 ruby19/bin 文件夹中有 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?

推荐答案

Mongrel 1.1.5 的当前发布版本与 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 从源代码编译扩展,并适用于我尝试过的大多数主要 gem.

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

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

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