Having trouble installing the Mongrel gem!

Hi list,
I’m using the latest version of RVM with ruby 1.9.2
I’m running Ubuntu Maverick.

When running ‘gem install mongrel’ I am getting the following error:

ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for main() in -lc… yes
creating Makefile

make
gcc -I.
-I/usr/local/rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/i686-linux
-I/usr/local/rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward
-I/usr/local/rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.
-D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wno-long-long -fPIC -o http11_parser.o
-c http11_parser.c
http11_parser.rl: In function

I wouldn’t be using the mongrel gem. It’s a very old gem and I don’t
think
it’s even supported on 1.9.2

I’d suggest taking a look at thin or unicorn

HTH
Daniel

Jen [email protected] wrote:

I want to test Mongrel to see if solves my
problem before I go messing around with complex unicorn proxy apache
setups etc.

Unless Apache mod_proxy added full request/response buffering, unicorn
and Apache mod_proxy don’t mix. nginx is still the only supported proxy
for unicorn (speaking as the project leader for unicorn).

Alternatively, if you’re already running Mongrel without a proxy in
front, Rainbows! standalone with ThreadSpawn[1] is kinda like Mongrel
except far less portable (and unheard of in production use):

Here’s a sample config file to get you started:
---------------------- rainbows.conf.rb ----------------------
Rainbows! do
use :ThreadSpawn

the Rainbows! default is far lower than Mongrel’s default of 950,

but it’s easier to manage/balance worker processes with Rainbows!

worker_connections 50

Rainbows! limits uploads to 1M by default, change with this

client_max_body_size 666
end

2-4 per CPU is a good number depending on the app/RAM

worker_processes 1

Jen [email protected] wrote:

When running ‘gem install mongrel’ I am getting the following error:

Try “gem install mongrel --pre”, too. That should get you the
1.2.0 prerelease that Luis started working on last year but
appears to have abandoned.

“Ruby on Rails 3 Tutorial” (p. 20, ft. note 12) says that the mongrel
gem isn’t compatible with ruby 1.9.2 and to use the sho-mongrel gem
instead.