【问题标题】:Error starting mongrel on windows after using RubyInstaller 1.9.1 RC2使用 RubyInstaller 1.9.1 RC2 后在 Windows 上启动 mongrel 时出错
【发布时间】:2011-02-10 15:30:59
【问题描述】:

我通过rubyforge 提供的RubyInstaller 1.9.1 RC2 安装了Ruby,更新了gem,并安装了rails。使用 webrick 一切正常。为了好玩,我使用“gem install mongrel”安装了 mongrel。安装顺利:

Successfully installed gem_plugin-0.2.3
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5-x86-mingw32
3 gems installed
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for cgi_multipart_eof_fix-2.5.0...
Installing ri documentation for mongrel-1.1.5-x86-mingw32...
Updating class cache with 1162 classes...
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for cgi_multipart_eof_fix-2.5.0...
Installing RDoc documentation for mongrel-1.1.5-x86-mingw32...

现在,当我使用“ruby 脚本/服务器”启动网络服务器时,出现错误:

“程序无法启动,因为您的计算机中缺少 msvcrt-ruby18.dll。”

然后,webrick 启动并正常运行。

我猜这是使用 Rails 1.9 的问题,而 mongrel 期望 1.8? (我是 Rails 新手,我没有真正的理由使用 mongrel .. 只是四处寻找)

【问题讨论】:

  • 我卸载了 1.9 并安装了 1.8.x,现在一切正常。如果有人知道 1.9 是否无法正确使用 mogrel,我会保持打开状态。

标签: ruby-on-rails windows mongrel


【解决方案1】:

使用 Ruby 1.9 时需要使用 Mongrel 1.2.0.pre2。如果您要升级到 Ruby 1.9,您还应该升级到 Ruby 1.9.2,因为 Rails 与 Ruby 1.9.1 存在问题。

要在没有捆绑器的情况下安装:

gem install mongrel --pre

在您的 gemfile 中:

gem 'mongrel', '1.2.0.pre2'

【讨论】:

    猜你喜欢
    • 2011-06-22
    • 1970-01-01
    • 2010-11-07
    • 1970-01-01
    • 2011-03-06
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多