# Fcgi install problems

**URL:** <https://rubytalk.org/t/fcgi-install-problems/10354>\
**Category:** ruby-talk\
**Created:** [29 February 2004 02:33 UTC](https://rubytalk.org/t/fcgi-install-problems/10354 "2004-02-29T02:33:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Freeze2](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@Jim\_Freeze2](https://rubytalk.org/u/Jim_Freeze2)\
**Post date:** [29 February 2004 02:33 UTC](https://rubytalk.org/t/fcgi-install-problems/10354/1 "2004-02-29T02:33:01Z")

</div>

Hi

I seem to be having some fcgi install problems. I checked out  
Ruby talk, and my exact same problem was posted, but without a response.

ruby install.rb config  
install.rb: entering config phase…  
—\> lib  
\<— lib  
—\> ext  
—\> ext/fcgi  
/usr/local/bin/ruby  
/usr/home/jfreeze/downloads/ruby/ruby-fcgi-0.8.4/ext/fcgi/extconf.rb  
checking for fcgiapp.h… no  
\<— ext/fcgi  
\<— ext  
install.rb: config done.  
~/downloads/ruby/ruby-fcgi-0.8.4 -\> ruby install.rb setup  
install.rb: entering setup phase…  
—\> lib  
\<— lib  
—\> ext  
—\> ext/fcgi  
make  
make: no target to make.  
setup failed  
’system make’ failed  
try ‘ruby install.rb --help’ for usage

> **···**
>
> * * *
> 
> Also, the extension won’t install (I don’t know where to find fcgiapp.h)  
>   
> cd ext/fcgi/  
> ~/downloads/ruby/ruby-fcgi-0.8.4/ext/fcgi -\> ruby extconf.rb  
> checking for fcgiapp.h… no
> 
> Can someone shed some light on the subject?
> 
> ## Thanks
> 
> Jim Freeze
> 
> Just because you’re paranoid doesn’t mean they AREN’T after you.

---

<div class="post-metadata">

**Author:** ![David\_Heinemeier\_Ha2](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@David\_Heinemeier\_Ha2](https://rubytalk.org/u/David_Heinemeier_Ha2)\
**Post date:** [29 February 2004 09:24 UTC](https://rubytalk.org/t/fcgi-install-problems/10354/2 "2004-02-29T09:24:40Z")

</div>

> Can someone shed some light on the subject?

Did you install the FastCGI Developer’s Kit and mod\_fcgi? The file  
complained about is part of the Developer’s Kit located in the include  
directory. You need all three packages to get running: Developer’s Kit  
[1], mod\_fcgi [2], and ruby-fcgi.

Get both Developer’s Kit and mod\_fcgi at [http://www.fastcgi.com/dist/](http://www.fastcgi.com/dist/).

> **···**
>
> –  
> David Heinemeier Hansson,  
> [http://www.basecamphq.com/](http://www.basecamphq.com/) – Web-based Project Management  
> [http://www.loudthinking.com/](http://www.loudthinking.com/) – Broadcasting Brain

---

<div class="post-metadata">

**Author:** ![Dick\_Davies1](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@Dick\_Davies1](https://rubytalk.org/u/Dick_Davies1)\
**Post date:** [29 February 2004 13:26 UTC](https://rubytalk.org/t/fcgi-install-problems/10354/3 "2004-02-29T13:26:59Z")

</div>

> cd ext/fcgi/  
> ~/downloads/ruby/ruby-fcgi-0.8.4/ext/fcgi → ruby extconf.rb  
> checking for fcgiapp.h… no

I built a NetBSD package for this last week.

You need to specify where you have installed the C fastcgi library  
(from [http://fastcgi.com/dist/fcgi-2.4.0.tar.gz](http://fastcgi.com/dist/fcgi-2.4.0.tar.gz))

I had to pick through the source and pickaxe to figure it out.

I have fcgiapp.h in /usr/pkg/include, so I run:

0rasputin@lb:ruby-fcgi-0.8.4$ cd ext/fcgi/  
0rasputin@lb:fcgi$ ruby extconf.rb --with-fcgi-dir=/usr/pkg  
checking for fcgiapp.h… yes  
checking for FCGX\_Accept() in -lfcgi… yes  
creating Makefile

Then ‘cd -’ and do the usual install.rb config|setup|install cycle.

Actually, dose anyone know of a way to have install.rb pass arguments to  
extconf.rb?

---

<div class="post-metadata">

**Author:** ![Ara.T.Howard](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Ara.T.Howard](https://rubytalk.org/u/Ara.T.Howard)\
**Post date:** [1 March 2004 17:04 UTC](https://rubytalk.org/t/fcgi-install-problems/10354/4 "2004-03-01T17:04:50Z")

</div>

- [http://www.rubygarden.org/ruby?UsingRubyFastCGI](http://www.rubygarden.org/ruby?UsingRubyFastCGI)

may be useful - maybe not…

-a

> **···**
>
> On Sun, 29 Feb 2004, Jim Freeze wrote:
> 
> > Hi
> > 
> > I seem to be having some fcgi install problems. I checked out  
> > Ruby talk, and my exact same problem was posted, but without a response.
> > 
> > ruby install.rb config  
> > install.rb: entering config phase…  
> > —\> lib  
> > \<— lib  
> > —\> ext  
> > —\> ext/fcgi  
> > /usr/local/bin/ruby  
> > /usr/home/jfreeze/downloads/ruby/ruby-fcgi-0.8.4/ext/fcgi/extconf.rb  
> > checking for fcgiapp.h… no  
> > \<— ext/fcgi  
> > \<— ext  
> > install.rb: config done.  
> > ~/downloads/ruby/ruby-fcgi-0.8.4 → ruby install.rb setup  
> > install.rb: entering setup phase…  
> > —\> lib  
> > \<— lib  
> > —\> ext  
> > —\> ext/fcgi  
> > make  
> > make: no target to make.  
> > setup failed  
> > ‘system make’ failed  
> > try ‘ruby install.rb --help’ for usage
> > 
> > * * *
> > 
> > Also, the extension won’t install (I don’t know where to find fcgiapp.h)  
> >   
> > cd ext/fcgi/  
> > ~/downloads/ruby/ruby-fcgi-0.8.4/ext/fcgi → ruby extconf.rb  
> > checking for fcgiapp.h… no
> > 
> > Can someone shed some light on the subject?
> > 
> > Thanks
> 
> # –
> 
> > EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov  
> > PHONE :: 303.497.6469  
> > ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328  
> > URL :: [Solar-Terrestrial Physics Data | NCEI](http://www.ngdc.noaa.gov/stp/)  
> > TRY :: for l in ruby perl;do $l -e “print "\x3a\x2d\x29\x0a"”;done  
> > ===============================================================================

---

<div class="post-metadata">

**Author:** ![Dick\_Davies1](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@Dick\_Davies1](https://rubytalk.org/u/Dick_Davies1)\
**Post date:** [29 February 2004 16:08 UTC](https://rubytalk.org/t/fcgi-install-problems/10354/5 "2004-02-29T16:08:15Z")

</div>

David Heinemeier Hansson wrote:

> > Can someone shed some light on the subject?
> 
> Did you install the FastCGI Developer’s Kit and mod\_fcgi? The file  
> complained about is part of the Developer’s Kit located in the include  
> directory. You need all three packages to get running: Developer’s Kit  
> [1], mod\_fcgi [2], and ruby-fcgi.
> 
> Get both Developer’s Kit and mod\_fcgi at [http://www.fastcgi.com/dist/](http://www.fastcgi.com/dist/).

2 minor nits:

You don’t need mod\_fcgi unless you use Apache.  
You don’t need the devkit if you want to do things in pure ruby.
