Fcgi install problems

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.

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/.

···


David Heinemeier Hansson,
http://www.basecamphq.com/ – Web-based Project Management
http://www.loudthinking.com/ – Broadcasting Brain

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)

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?

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
TRY :: for l in ruby perl;do $l -e “print "\x3a\x2d\x29\x0a"”;done
===============================================================================

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/.

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.