Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FastCGI - can't see files

Status
Not open for further replies.

CherylD

Programmer
May 1, 2001
107
CA
I'm trying to install the FCGI.pm and although it worked great on the test server, it isn't working too well on live server. Here's the steps and problems:
1. perl Makefile.PL --> works great
2. make --> gcc -c -I. -I/usr/local/include -O -DVERSION=\"0.60\" -DXS_VERSION=\"0.60\" -fPIC -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE FCGI.c
In file included from /usr/local/lib/perl5/5.00503/sun4-solaris/CORE/perl.h:1531,
from FCGI.xs:4:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/include/math.h:5: math.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `FCGI.o'
3. make test --> gcc -c -I. -I/usr/local/include -O -DVERSION=\"0.60\" -DXS_VERSION=\"0.60\" -fPIC -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE FCGI.c
In file included from /usr/local/lib/perl5/5.00503/sun4-solaris/CORE/perl.h:1531,
from FCGI.xs:4:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/include/math.h:5: math.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `FCGI.o'

But the math.h and perl.h files are there. ???? The test file looks like:
#!/usr/local/bin/perl

use DBI;
use FCGI;

print 'Hello World';

and works great on the test server, but comes up with this error on the live server:
Can't locate FCGI.pm in @INC (@INC contains: /usr/local/lib/perl5/5.00503/sun4-solaris /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris /usr/local/lib/perl5/site_perl/5.005 .) at test.fpl line 4.
BEGIN failed--compilation aborted at test.fpl line 4.


I also don't know what the right conf changes for apache would be so a link to a site with the correct ones would be great, but first things first, need to install FCGI.pm

Thanks.
 
Cheryl,

This looks more like a problem with gcc - have you used gcc for anything else on that box? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
It appears to work to me as when I type gcc at the promopt it asks for input files. When I run gcc -c test.c I get no errors and test.o does get created. How else should I test it?
 
I was thinking more of something that also uses math.h from that directory -- are the permissions set correctly for that file and directory? Can you write a small test program that includes that file?

Last time I had problems with gcc I just re-installed the latest version, not very clever perhaps - but it worked. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top