Mailing List Archive

Apache::DBI can't locate object method
My Apache::DBI installation does not work. I have tried v0.81, v0.85 and
v0.87
Can anyone see what the solution might be?

[root@orion ApacheDBI-0.85]# /web/admin/perllib/startup.pl
Can't locate object method "module" via package "Apache" at
/usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 201.
BEGIN failed--compilation aborted at /web/admin/perllib/startup.pl line
10.

[root@orion ApacheDBI-0.85]# cat /web/admin/perllib/startup.pl
#!/usr/bin/perl
use strict;
use lib "/web/admin/perllib/";
use CGI (); #preload CGI
CGI->compile(':all');
use Apache::Registry;
use Apache::DBI;
#use Apache::ePerl;
#our modules
use LO;
use VENDOR;
use CSERVICE;
use PURCHASE;
use GIFTCERTIFICATE;

1;


I have installed the following on RH6.0 box:
mod_perl-1.21 (built) (tried rpm with no luck)
DBI-1.13-1 (rpm)
apache-devel-1.3.9-4 (rpm)
apache-1.3.9-4 (rpm)
perl-5.00503-6 (rpm)

Thanks.
--
========================================================+
Mark Foster mdf@altrec.com ph4256880567x109 fx4256880590
Altrec is now ONLINE! http://www.altrec.com/
Re: Apache::DBI can't locate object method [ In reply to ]
Mark Foster wrote:
>
> My Apache::DBI installation does not work. I have tried v0.81, v0.85 and
> v0.87
> Can anyone see what the solution might be?
>
> [root@orion ApacheDBI-0.85]# /web/admin/perllib/startup.pl
> Can't locate object method "module" via package "Apache" at
> /usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 201.
> BEGIN failed--compilation aborted at /web/admin/perllib/startup.pl line
> 10.
>
> [root@orion ApacheDBI-0.85]# cat /web/admin/perllib/startup.pl
> #!/usr/bin/perl
> use strict;
> use lib "/web/admin/perllib/";
> use CGI (); #preload CGI
> CGI->compile(':all');
> use Apache::Registry;
> use Apache::DBI;
> #use Apache::ePerl;
> #our modules
> use LO;
> use VENDOR;
> use CSERVICE;
> use PURCHASE;
> use GIFTCERTIFICATE;
>
> 1;
>
> I have installed the following on RH6.0 box:
> mod_perl-1.21 (built) (tried rpm with no luck)
> DBI-1.13-1 (rpm)
> apache-devel-1.3.9-4 (rpm)
> apache-1.3.9-4 (rpm)



so which httpd are you using, the one built with
mod_perl or the one from the rpm ?

The safest method on Linux is to build everything
from the sources.



> perl-5.00503-6 (rpm)
>
> Thanks.
> --
> ========================================================+
> Mark Foster mdf@altrec.com ph4256880567x109 fx4256880590
> Altrec is now ONLINE! http://www.altrec.com/



Edmund



--
Edmund Mergl
mailto:E.Mergl@bawue.de
http://www.bawue.de/~mergl
Re: Apache::DBI can't locate object method [ In reply to ]
Hi there,

On Tue, 22 Feb 2000, Mark Foster wrote:

> BEGIN failed--compilation aborted at /web/admin/perllib/startup.pl line
> 10.

Lines 9 and 10:

> #our modules
> use LO;

Where are your modules, and what does @INC look like?

73,
Ged.


> My Apache::DBI installation does not work. I have tried v0.81, v0.85 and
> v0.87
> Can anyone see what the solution might be?
>
> [root@orion ApacheDBI-0.85]# /web/admin/perllib/startup.pl
> Can't locate object method "module" via package "Apache" at
> /usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 201.
> BEGIN failed--compilation aborted at /web/admin/perllib/startup.pl line
> 10.
>
> [root@orion ApacheDBI-0.85]# cat /web/admin/perllib/startup.pl
> #!/usr/bin/perl
> use strict;
> use lib "/web/admin/perllib/";
> use CGI (); #preload CGI
> CGI->compile(':all');
> use Apache::Registry;
> use Apache::DBI;
> #use Apache::ePerl;
> #our modules
> use LO;
> use VENDOR;
> use CSERVICE;
> use PURCHASE;
> use GIFTCERTIFICATE;
>
> 1;
>
>
> I have installed the following on RH6.0 box:
> mod_perl-1.21 (built) (tried rpm with no luck)
> DBI-1.13-1 (rpm)
> apache-devel-1.3.9-4 (rpm)
> apache-1.3.9-4 (rpm)
> perl-5.00503-6 (rpm)
>
> Thanks.
> --
> ========================================================+
> Mark Foster mdf@altrec.com ph4256880567x109 fx4256880590
> Altrec is now ONLINE! http://www.altrec.com/
>