Gem install mongrel error? help

gem install mongrel
Updating metadata for 39 gems from http://gems.rubyforge.org

complete
Building native extensions. This could take a while…
ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install mongrel
checking for main() in -lc… yes
creating Makefile

make
gcc -I. -I/usr/local/include/ruby-1.9.0/i686-linux
-I/usr/local/include/ruby-1.9.0 -I. -D_FILE_OFFSET_BITS=64 -fPIC -g -O2
-o http11_parser.o -c http11_parser.c
gcc -I. -I/usr/local/include/ruby-1.9.0/i686-linux
-I/usr/local/include/ruby-1.9.0 -I. -D_FILE_OFFSET_BITS=64 -fPIC -g -O2
-o http11.o -c http11.c
http11.c: In function ‘http_field’:
http11.c:77: error: ‘struct RString’ has no member named ‘ptr’
http11.c:77: error: ‘struct RString’ has no member named ‘len’
http11.c: In function ‘header_done’:
http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
http11.c:174: error: ‘struct RString’ has no member named ‘ptr’
http11.c:176: error: ‘struct RString’ has no member named ‘ptr’
http11.c:177: error: ‘struct RString’ has no member named ‘len’
http11.c: In function ‘HttpParser_execute’:
http11.c:298: error: ‘struct RString’ has no member named ‘ptr’
http11.c:299: error: ‘struct RString’ has no member named ‘len’
make: *** [http11.o] Error 1

Gem files will remain installed in
/usr/local/lib/ruby/gems/1.9.0/gems/mongrel-1.1.3 for inspection.
Results logged to
/usr/local/lib/ruby/gems/1.9.0/gems/mongrel-1.1.3/ext/http11/gem_make.out

On Dec 29, 3:57 am, Li Yu [email protected] wrote:

creating Makefile

make
gcc -I. -I/usr/local/include/ruby-1.9.0/i686-linux
-I/usr/local/include/ruby-1.9.0 -I. -D_FILE_OFFSET_BITS=64 -fPIC -g -O2

Stop right there.

There is no Mongrel compatible with Ruby 1.9.0.
Currently there is no release plan about it, but we are working on
this subject.
Official word: unsupported.

I guess you will try to install rails after mongrel, so I suggest to
get back to 1.8.6 and stick there.

1.9.0 is a development release.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs