# Problem insalling mongrel/mysql with Ruby 1.9.1

**URL:** <https://www.ruby-forum.com/t/problem-insalling-mongrel-mysql-with-ruby-1-9-1/166265>\
**Category:** Ruby\
**Created:** [April 23, 2009, 9:37am UTC](https://www.ruby-forum.com/t/problem-insalling-mongrel-mysql-with-ruby-1-9-1/166265 "2009-04-23T09:37:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkbeili](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Post date:** [April 23, 2009, 9:37am UTC](https://www.ruby-forum.com/t/problem-insalling-mongrel-mysql-with-ruby-1-9-1/166265/1 "2009-04-23T09:37:30Z")

</div>

Hello,

I upgraded to Ruby 1.9.1 and I was trying to install Mongrel: gem  
install mongrel

I got the following error:

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

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

make  
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux  
-I/usr/local/include/ruby-1.9.1/ruby/backward  
-I/usr/local/include/ruby-1.9.1 -I. -D\_FILE\_OFFSET\_BITS=64 -fPIC -O2  
-g -Wall -Wno-parentheses -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:77: warning: left-hand operand of comma expression has no  
effect  
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.1/gems/mongrel-1.1.4 for inspection.  
Results logged to  
/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.4/ext/http11/gem\_make.out

Any ideas?

Thanks,

Tam

---

<div class="post-metadata">

**Author:** ![tkbeili](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Post date:** [April 23, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/problem-insalling-mongrel-mysql-with-ruby-1-9-1/166265/2 "2009-04-23T15:20:04Z")

</div>

> I upgraded to Ruby 1.9.1 and I was trying to install Mongrel: gem  
> install mongrel
> 
> I got the following error:
> 
> ERROR: Error installing mongrel:  
> ERROR: Failed to build gem native extension.
> 
> /usr/local/bin/ruby extconf.rb  
> checking for main() in -lc… yes  
> creating Makefile
> 
> make  
> gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux  
> -I/usr/local/include/ruby-1.9.1/ruby/backward  
> -I/usr/local/include/ruby-1.9.1 -I. -D\_FILE\_OFFSET\_BITS=64 -fPIC -O2  
> -g -Wall -Wno-parentheses -o http11.o -c http11.c  
> http11.c: In function ‘http\_field’:  
> http11.c:77: error: ‘struct RString’ has no member named ‘ptr’

try their subversion trunk? for mysql you could try mysqlplus (known to  
be 1.9 compat–a fork of the normal mysql).

> **[GitHub - oldmoe/mysqlplus: An enhanced mysql driver with an async interface and...](https://github.com/oldmoe/mysqlplus/tree/master)**
>
> master

GL.  
-=r
