RE: modperl newbie: question about unable to load File.pm

2000-08-24 Thread Geoffrey Young

make sure that you enabled Apache::File when you built mod_perl, ie

perl Makefile.PL EVERYTHING=1
or
perl Makefile.PL PERL_FILE_API=1

HTH

--Geoff

 -Original Message-
 From: Hoffman , Geoffrey [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 24, 2000 3:40 PM
 To: modperl
 Subject: modperl newbie: question about unable to load File.pm
 
 
 I am trying to learn mod_perl, and have been going through 
 the O'Reilly
 book.  Got to the "footer" example, where it just simply adds 
 some HTML to
 the bottom of a page.  not a big deal.
 
 when I try to run it, I get issues with mod_perl not being 
 able to find
 File.pm.  here is some of what I see (I removed lots of extra text):
 
 File.pm: Can't locate loadable object for module Apache::File 
 in @INC (@INC
 contains: /usr/local/apache/lib/perl
 /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 . /usr/local/apache/
 /usr/local/apache/lib/perl) at
 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/mod_perl.pm line 14
 [Thu Aug 24 15:30:59 2000] Footer.pm: [Thu Aug 24 15:30:59 
 2000] Footer.pm:
 BEGIN failed--compilation aborted at
 /usr/local/apache/lib/perl/Apache/Footer.pm line 6.
 
 for reference, this is Solaris 2.6.  Footer.pm is the module 
 I am trying to
 write, sites at ~apache/lib/perl/Apache/Footer.pm.  this is 
 latest Apache
 (1.3.12) and mod_perl (1.24).  Mainly a stock install, with 
 grabbing the
 sources, doing the standard make and make install on them.
 
 I didn't do any extra setup for it, other than Use 
 Apache::File ();, which
 is basically where it is choking.
 
 I checked, File.pm IS located down in the 
 /usr/local/lib/perl5 directory, in
 the same directories as other modules that ARE working (like 
 Constants).
 
 Hate to ask what may be an obvious question, but anyone have 
 any idea what
 is causing this?  any information would be appreciated.
 



RE: modperl newbie: question about unable to load File.pm - fixed

2000-08-24 Thread Hoffman , Geoffrey

hey, never mind about this.  It seems that it was mainly missing the:

perl Makefile.pl EVERYTHING=1

thing.  I actually compiled it, then did the make with everything, but
forgot the make install.

sorry to bother y'all.

-Original Message-
From: Hoffman , Geoffrey 
Sent: Thursday, August 24, 2000 3:40 PM
To: modperl
Subject: modperl newbie: question about unable to load File.pm


I am trying to learn mod_perl, and have been going through the O'Reilly
book.  Got to the "footer" example, where it just simply adds some HTML to
the bottom of a page.  not a big deal.

when I try to run it, I get issues with mod_perl not being able to find
File.pm.  here is some of what I see (I removed lots of extra text):

File.pm: Can't locate loadable object for module Apache::File in @INC (@INC
contains: /usr/local/apache/lib/perl
/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 . /usr/local/apache/
/usr/local/apache/lib/perl) at
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/mod_perl.pm line 14
[Thu Aug 24 15:30:59 2000] Footer.pm: [Thu Aug 24 15:30:59 2000] Footer.pm:
BEGIN failed--compilation aborted at
/usr/local/apache/lib/perl/Apache/Footer.pm line 6.

for reference, this is Solaris 2.6.  Footer.pm is the module I am trying to
write, sites at ~apache/lib/perl/Apache/Footer.pm.  this is latest Apache
(1.3.12) and mod_perl (1.24).  Mainly a stock install, with grabbing the
sources, doing the standard make and make install on them.

I didn't do any extra setup for it, other than Use Apache::File ();, which
is basically where it is choking.

I checked, File.pm IS located down in the /usr/local/lib/perl5 directory, in
the same directories as other modules that ARE working (like Constants).

Hate to ask what may be an obvious question, but anyone have any idea what
is causing this?  any information would be appreciated.