使用 RubyInstaller 1.9.1 RC2 后在 Windows 上启动 mongrel 时出错
我通过 rubyforge 上的 RubyInstaller 1.9.1 RC2 安装了 Ruby,已更新宝石,并安装了导轨。使用 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 script/server”启动网络服务器时,我收到错误:
“程序无法启动,因为您的计算机缺少 msvcrt-ruby18.dll。”
然后,webrick启动并正常运行。
我猜这是使用 Rails 1.9 的问题,而 mongrel 需要 1.8? (我是 Rails 新手,没有真正的理由让我使用 mongrel.. 只是四处闲逛)
I installed Ruby via the RubyInstaller 1.9.1 RC2 available from rubyforge, updated gems, and installed rails. Everything worked fine using webrick. For fun, I installed mongrel using "gem install mongrel". The installation went fine:
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...
Now, when I start the webserver using "ruby script/server", I get the error:
"The program can't start because msvcrt-ruby18.dll is missing from your computer."
Then, webrick starts and runs normally.
I'm guessing its a issue using Rails 1.9 and mongrel expects 1.8? (I'm new to rails and there is no real reason for me to use mongrel.. just poking around)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用Ruby 1.9时需要使用Mongrel 1.2.0.pre2。如果您要升级到 Ruby 1.9,您还应该升级到 Ruby 1.9.2,因为 Rails 在使用 Ruby 1.9.1 时存在问题。
不使用捆绑程序进行安装:
在您的 gemfile 中:
You need to use Mongrel 1.2.0.pre2 when using Ruby 1.9. If you're upgrading to Ruby 1.9, you should also upgrade to Ruby 1.9.2 since Rails has issues with Ruby 1.9.1.
To install without bundler:
In your gemfile: