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

On 6 July 2011 09:59, Jen <jen.bottom / gmail.com> wrote:

> 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/**i6=
86-linux
> -I/usr/local/rvm/rubies/ruby-**1.9.2-p180/include/ruby-1.9.1/**ruby/backw=
ard
> -I/usr/local/rvm/rubies/ruby-**1.9.2-p180/include/ruby-1.9.1 -I.
> -D_FILE_OFFSET_BITS=3D64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter
> -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-**ini=
tializers
> -Wno-long-long -fPIC -o http11_parser.o -c http11_parser.c
> http11_parser.rl: In function =91http_parser_execute=92:
> http11_parser.rl:105: warning: comparison between signed and unsigned
> integer expressions
> gcc -I. -I/usr/local/rvm/rubies/ruby-**1.9.2-p180/include/ruby-1.9.1/**i6=
86-linux
> -I/usr/local/rvm/rubies/ruby-**1.9.2-p180/include/ruby-1.9.1/**ruby/backw=
ard
> -I/usr/local/rvm/rubies/ruby-**1.9.2-p180/include/ruby-1.9.1 -I.
> -D_FILE_OFFSET_BITS=3D64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter
> -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-**ini=
tializers
> -Wno-long-long -fPIC -o http11.o -c http11.c
> http11.c: In function =91http_field=92:
> http11.c:70: warning: format not a string literal and no format arguments
> http11.c:71: warning: format not a string literal and no format arguments
> http11.c:77: error: =91struct RString=92 has no member named =91ptr=92
> http11.c:77: error: =91struct RString=92 has no member named =91len=92
> http11.c: In function =91request_uri=92:
> http11.c:102: warning: format not a string literal and no format argument=
s
> http11.c: In function =91fragment=92:
> http11.c:113: warning: format not a string literal and no format argument=
s
> http11.c: In function =91request_path=92:
> http11.c:124: warning: format not a string literal and no format argument=
s
> http11.c: In function =91query_string=92:
> http11.c:135: warning: format not a string literal and no format argument=
s
> http11.c: In function =91header_done=92:
> http11.c:172: error: =91struct RString=92 has no member named =91ptr=92
> http11.c:172: error: =91struct RString=92 has no member named =91ptr=92
> http11.c:172: error: =91struct RString=92 has no member named =91ptr=92
> http11.c:174: error: =91struct RString=92 has no member named =91ptr=92
> http11.c:176: error: =91struct RString=92 has no member named =91ptr=92
> http11.c:177: error: =91struct RString=92 has no member named =91len=92
> http11.c: In function =91HttpParser_execute=92:
> http11.c:298: error: =91struct RString=92 has no member named =91ptr=92
> http11.c:299: error: =91struct RString=92 has no member named =91len=92
> http11.c:307: warning: format not a string literal and no format argument=
s
> make: *** [http11.o] Error 1
>
>
> Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.**2-p180/=
gems/mongrel-1.1.5
> for inspection.
> Results logged to /usr/local/rvm/gems/ruby-1.9.**
> 2-p180/gems/mongrel-1.1.5/ext/**http11/gem_make.out
>
> I know the answer is probably somewhere in the above output, but I just
> can't see it. I need to get this installed pretty fast, as having an issu=
e
> with webrick not handling file uploading when running in daemon mode. I w=
ant
> to test Mongrel to see if solves my problem before I go messing around wi=
th
> complex unicorn proxy apache setups etc.
>
> Any help would be very very great!
>
> Thanks in advance,
> Jen!
>
>