# Fcgi or ruby-fcgi on Windows-Xp

**URL:** <https://www.ruby-forum.com/t/fcgi-or-ruby-fcgi-on-windows-xp/187059>\
**Category:** Ruby\
**Created:** [April 16, 2010, 12:21pm UTC](https://www.ruby-forum.com/t/fcgi-or-ruby-fcgi-on-windows-xp/187059 "2010-04-16T12:21:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorkimaximum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@gorkimaximum](https://www.ruby-forum.com/u/gorkimaximum)\
**Post date:** [April 16, 2010, 12:21pm UTC](https://www.ruby-forum.com/t/fcgi-or-ruby-fcgi-on-windows-xp/187059/1 "2010-04-16T12:21:34Z")

</div>

Hello,

Finally i’ve could install fcgi and ruby-fcgi on Windows-Xp.

The command to do it was:

> gem install fcgi – --with-opt-dir=c:\fcgi --remote

or

> gem install ruby-fcgi – --with-opt-dir=c:\fcgi --remote

Where c:\fcgi is the Fastcgi-development-kit installation directory.

Thanks to all for your help.

Javier A…

---

<div class="post-metadata">

**Author:** ![gorkimaximum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@gorkimaximum](https://www.ruby-forum.com/u/gorkimaximum)\
**Post date:** [April 16, 2010, 8:29pm UTC](https://www.ruby-forum.com/t/fcgi-or-ruby-fcgi-on-windows-xp/187059/2 "2010-04-16T20:29:53Z")

</div>

Javier A. wrote:

> Hello,
> 
> Finally i’ve could install fcgi and ruby-fcgi on Windows-Xp.
> 
> The command to do it was:
> 
> > gem install fcgi – --with-opt-dir=c:\fcgi --remote
> 
> or
> 
> > gem install ruby-fcgi – --with-opt-dir=c:\fcgi --remote
> 
> Where c:\fcgi is the Fastcgi-development-kit installation directory.

Wow for some reason I’m not able to even _build_ the fcgi library using  
mingw. Where did you get those binaries? Did you compile them youself?

It appears that fcgi on windows is pretty rare [1]

You might get some traction with

> > gem install ruby-fcgi – --with-opt-dir=/fcgi --remote  
> > or  
> > gem install ruby-fcgi – --with-opt-dir=c:/fcgi --remote

if you’re using mingw.  
-rp

[1] [Ruby-fcgi on Windows - Rails - Ruby-Forum](http://www.ruby-forum.com/topic/93383)

---

<div class="post-metadata">

**Author:** ![gorkimaximum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@gorkimaximum](https://www.ruby-forum.com/u/gorkimaximum)\
**Post date:** [April 19, 2010, 11:55am UTC](https://www.ruby-forum.com/t/fcgi-or-ruby-fcgi-on-windows-xp/187059/3 "2010-04-19T11:55:35Z")

</div>

Hi,

To use fcgi on Windows, you have to take next steps to install:

1. Download an install Fastcgi-development-kit from [www.fastcgi.com](http://www.fastcgi.com),  
i’ve installed it in C:/fcgi directory.(Last version is  
fcgi-2.4.0.tar.tar).

2. Download last version of mod\_fcgid.so and fcgi.so module from  
“[Download - The Apache HTTP Server Project](http://httpd.apache.org/download.cgi)” and put it on apache/modules  
directory. (Last version is mod\_fcgid-2.3.5-win32-x86.zip).

3. install the fcgi gem from [www.rubyforge.org](http://www.rubyforge.org) or [www.rubygems.org](http://www.rubygems.org) with  
gem install procedure (You need the --with-opt-dir directive to fcgi  
installation directory for the procedure work.)

I don’t know if Mingw install procedure is different. I have installed  
Mingw (and Msys also) and also Cygwin, but i don’t use them too much,  
because i always work better with Windows.

I use WSDK for Windows 7 and Netframework 3.5 to compile sources, but i  
think in Windows is better to download binaries from some  
web-site.Generally source-compilation ends with a lot of errors.Is  
difficult not to miss any header file and i think the effort dont’s  
whorty (I’ve really tried it so hard, but at last Â¡i give up!, Â¡dammned  
Windows!.).

Javier A…

Roger P. wrote:

> Javier A. wrote:
> 
> > Hello,
> > 
> > Finally i’ve could install fcgi and ruby-fcgi on Windows-Xp.
> > 
> > The command to do it was:
> > 
> > > gem install fcgi – --with-opt-dir=c:\fcgi --remote
> > 
> > or
> > 
> > > gem install ruby-fcgi – --with-opt-dir=c:\fcgi --remote
> > 
> > Where c:\fcgi is the Fastcgi-development-kit installation directory.
> 
> Wow for some reason I’m not able to even _build_ the fcgi library using  
> mingw. Where did you get those binaries? Did you compile them youself?
> 
> It appears that fcgi on windows is pretty rare [1]
> 
> You might get some traction with
> 
> > > gem install ruby-fcgi – --with-opt-dir=/fcgi --remote  
> > > or  
> > > gem install ruby-fcgi – --with-opt-dir=c:/fcgi --remote
> 
> if you’re using mingw.  
> -rp
> 
> [1] [Ruby-fcgi on Windows - Rails - Ruby-Forum](http://www.ruby-forum.com/topic/93383)
