fcgi install problems

J

Jim Freeze

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
 
D

David Heinemeier Hansson

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

Dick Davies

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?
 
A

Ara.T.Howard

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

- http://www.rubygarden.org/ruby?UsingRubyFastCGI

may be useful - maybe not...

-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| URL :: http://www.ngdc.noaa.gov/stp/
| TRY :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done
===============================================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,158
Latest member
Vinay_Kumar Nevatia
Top