Mongrel with ruby 1.9
When starting the server, I get this strange error after upgrading to Ruby 1.9:
"[BUG] cross-linking violation on rb_gc () ruby 1.8.6 (2008-08-11) [i386-mswin32]
This application asked Runtime to terminate it in an unusual way. Please contact support for more information. "
My mongrel version is 1.1.6, which should be Ruby 1.9 compatible. I also have Ruby 1.8.6 installed, so I'm guessing that for some reason the mongrel is trying to access it and killing the ruby? My rails version is 2.3.4 if that matters.
a source to share
I would be suspicious of comments on your main source - most of the latter are spam comments pointing to links selling shoes or handbags.
For those who made money and did not become spammers, please note that they advise changing the source of the gems to http://gems.rubyinstaller.org
or using the 1.2.0 pre-release version.
Personally, I can't think of any compelling reason to use Mongrel post-2008. There are so many better options. Slim, Unicorn, and Passenger are all actively supported, have been compatible with 1.9 for a long time, are faster in typical tests, and have varying strengths in their features and ease of deployment. Mongrel was a huge step forward when it happened, but now it's a bit antique with no particular advantages.
It's just ... nothing but Webrick. Actually.
a source to share
which should be Ruby 1.9 compatible
Is there something specific that makes you think about it? I found out a few weeks ago that Mongrel doesn't work with Ruby 1.9 on Windows. I don't believe Mongrel was compiled with gcc / mingw32, which Ruby 1.9 requires.
The easiest option is to go back to WEBRick.
It's also fairly straightforward to use Thin , which is comparable to - and arguably faster than - Mongrel. I found that I needed to build it, although that would require installing mingw. See this SO answer - prepare to build before gem install thin
and everything should happen OK. Then use thin start
instead ruby script/server
.
a source to share