Install Mongrel in Ruby 1.9.3

南楼画角 提交于 2019-11-28 12:08:55
John Biesnecker

You are not alone. In the thread, however, there’s a link to a possible fix. I’ve not tried it so YMMV, but it seems like a plausible fix.

Given that Mongrel is no longer being updated, though, why not switch to something like Thin?

Edit: Sorry, I see that you're asking about 1.9.3. My understanding is that Mongrel is (supposed to be) compatible with up to 1.9.1, but broken in 1.9.2+. Yet another good reason to switch to something more modern and maintained.

below command,

gem install mongrel --pre

works well.

ref: check this link for more details

As John B stated, switch to Thin.

After not being able to get Mongrel to install with my current set up with Ruby 1.9.3, I commented out Mongrel from my Gemfile and added Thin. This let my app fully install and run great.

In my Gemfile

#gem 'mongrel', '1.2.0.pre2'
gem 'thin'

then run

bundle install
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!