# Ruby1.9 and fcgi

**URL:** <https://www.ruby-forum.com/t/ruby1-9-and-fcgi/120796>\
**Category:** Ruby\
**Created:** [November 20, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/ruby1-9-and-fcgi/120796 "2007-11-20T17:50:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [November 20, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/ruby1-9-and-fcgi/120796/1 "2007-11-20T17:50:18Z")

</div>

I’m testing some web applications (not rails) that use ruby-fcgi with  
current trunk version of ruby1.9 (btw, I’m glad to see now, that gem  
is included as a part of ruby :-D).  
Well, the thing is, that when trying to install fcgi using gem, this  
is what I get:

gcc -I. -I/opt/ruby1.9/include/ruby-1.9/i686-darwin9.0.0 -I/opt/  
ruby1.9/include/ruby-1.9 -I. -DHAVE\_FCGIAPP\_H -fno-common -g -O2 -  
pipe -fno-common -c fcgi.c  
fcgi.c: In function ‘fcgi\_stream\_write’:  
fcgi.c:225: error: ‘struct RString’ has no member named ‘ptr’  
fcgi.c:225: error: ‘struct RString’ has no member named ‘len’  
fcgi.c: In function ‘fcgi\_stream\_puts’:  
fcgi.c:308: error: ‘struct RString’ has no member named ‘ptr’  
fcgi.c:308: error: ‘struct RString’ has no member named ‘len’  
fcgi.c: In function ‘fcgi\_stream\_gets’:  
fcgi.c:382: error: ‘struct RString’ has no member named ‘len’  
make: \*\*\* [fcgi.o] Error 1

Apparently fcgi is trying to access some struct members that have  
changed in Ruby 1.9. Before digging into the fcgi gem, does anyone  
know if the mantainer of this gem is working in ruby1.9 support?

regards,

---

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [November 20, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/ruby1-9-and-fcgi/120796/2 "2007-11-20T17:54:24Z")

</div>

On Nov 20, 2007, at 1:46 PM, Rolando A. wrote:

> Apparently fcgi is trying to access some struct members that have  
> changed in Ruby 1.9. Before digging into the fcgi gem, does anyone  
> know if the mantainer of this gem is working in ruby1.9 support?

nevermind… it was an easy fix 😛  
I’ll send the patches to the ruby-fcgi mantainers.

regards,
