5

我通过 ruby​​forge 提供的RubyInstaller 1.9.1 RC2 安装了 Ruby ,更新了 gems,并安装了 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 .. 只是四处寻找)

4

1 回答 1

4

使用 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-01-26T22:22:10.143 回答