使用Rails 3和Ruby 2.1在Windows服务器上使用mongrel失败

时间:2014-10-23 10:17:41

标签: ruby-on-rails-3 mongrel

我正在尝试在Windows 2008服务器上安装redmine。 它适用于webrick。 现在我正试图用杂种把它投入生产。 但是,当我开始杂种时,我有以下错误:

  

E:/Ruby/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- 2.1/http11 (LoadError) from E:/Ruby/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require'   来自E:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/mongrel-1.2.0.pre2-x86-mingw32/lib/mongrel.rb:17:in rescue in \<top (required)>' from E:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/mongrel-1.2.0.pre2-x86-mingw32/lib/mongrel.rb:13:in \'   来自E:/Ruby/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from E:/Ruby/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require'   来自E:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/mongrel-1.2.0.pre2-x86-mingw32/bin/mongrel_rails:13:in \<top (required)>' from E:/Ruby/Ruby21/bin/mongrel_rails:23:in load'   来自E:/ Ruby / Ruby21 / bin / mongrel_rails:23:in''

我真的不了解Ruby,也无法弄清楚错误的含义。

感谢您的帮助

1 个答案:

答案 0 :(得分:1)

我不熟悉redmine,但我认为问题是你想运行Mongrel服务器,这是非常老的,可能与ruby2(你使用的)不兼容。例如,您可以尝试添加到Gemfile.local gem 'thin',并生成bundle install。我希望这manual能帮到你。