# Gem install problem: fcgi

**URL:** <https://www.ruby-forum.com/t/gem-install-problem-fcgi/122752>\
**Category:** Rails\
**Created:** [December 11, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/gem-install-problem-fcgi/122752 "2007-12-11T20:11:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@nick](https://www.ruby-forum.com/u/nick)\
**Post date:** [December 11, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/gem-install-problem-fcgi/122752/1 "2007-12-11T20:11:40Z")

</div>

hi, all

## I have encounter a problem to install ‘fcgi’, this is the error output

## ruby extconf.rb install fcgi ruby: No such file or directory – extconf.rb (LoadError)

## so I manually run extconf.rb but still not work:

have\_header: checking for fcgiapp.h… -------------------- no  
have\_header: checking for fastcgi/fcgiapp.h… -------------------- no

It looks like missing some header files and lib, Can someone pls tell  
me where to look for those file. thanks

I’m using windows xp sp2

---

<div class="post-metadata">

**Author:** ![nick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@nick](https://www.ruby-forum.com/u/nick)\
**Post date:** [December 11, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/gem-install-problem-fcgi/122752/2 "2007-12-11T20:37:08Z")

</div>

@Nick.  
Abandon hope for doing this on Windows. It’s not possible. 🙂

There are other ways to deploy on Windows. If you’re developing, you  
simply  
don’t need to do anything other than using ruby script/server.  
Deployment  
is different but there are better options than Fastcgi.

---

<div class="post-metadata">

**Author:** ![nick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@nick](https://www.ruby-forum.com/u/nick)\
**Post date:** [December 11, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/gem-install-problem-fcgi/122752/3 "2007-12-11T22:31:32Z")

</div>

what’s wrong with windows? ☹  
I’m looking for a good way to deploy it on Windows, are you saying I  
need to avoid using fcgi?  
Then, could you point me to the right direction.

---

<div class="post-metadata">

**Author:** ![nick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@nick](https://www.ruby-forum.com/u/nick)\
**Post date:** [December 14, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/gem-install-problem-fcgi/122752/4 "2007-12-14T18:39:27Z")

</div>

I’m having this same problem, except on linux…

have\_header: checking for fastcgi/fcgiapp.h… -------------------- no

“gcc -E -I. -I/usr/lib64/ruby/1.8/x86\_64-linux -I. -O2 -g -Wall -  
fPIC conftest.c -o conf  
test.i”  
conftest.c:1:29: fastcgi/fcgiapp.h: No such file or directory  
checked program was:  
/\* begin _/  
1: #include \<fastcgi/fcgiapp.h\>  
/_ end \*/

---

<div class="post-metadata">

**Author:** ![nick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@nick](https://www.ruby-forum.com/u/nick)\
**Post date:** [December 12, 2007, 12:01am UTC](https://www.ruby-forum.com/t/gem-install-problem-fcgi/122752/5 "2007-12-12T00:01:20Z")

</div>

I’ve written about this extensively on this list as well as in this  
book:

> **[Pragmatic Bookshelf: By Developers, For Developers](https://pragprog.com)**
>
> We improve the lives of professional developers. We create timely, practical books on classic and cutting-edge topics to help you learn and practice your craft, and accelerate your career. Come learn with us.

Bottom line: Ruby on Windows is _much_ slower. I deploy lots of apps on  
it  
though with success. The approach you want to look at is to use a  
combination of Apache 2.2 with mod\_proxy\_balancer and several instances  
of  
your app running via Mongrel. This is very similar to how it’s done on  
the  
\*nix side now. You can hide all this behind an existing IIS  
installation  
using the ISAPI\_REWRITE filter and a plugin I wrote called  
reverse\_proxy\_fix.

Setting this all up is a bit complicated at first, but it’s all covered  
in  
the aforementioned book. Alternatively, set up a linux VM on top of  
Windows  
and deploy your app to that. You’ll then be able to automate it using  
Capistrano or other tools.

If you need more info, contact me off list and I can try to help you.
