我通过 rubyforge 提供的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 .. 只是四处寻找)