[CentOS] CentOS4 and Apache-DBI

Wed Sep 21 00:05:37 UTC 2005
David Hiltz <dhiltz at whsun1.wh.whoi.edu>

Will McDonald wrote:

>On 20/09/05, David Hiltz <dhiltz at whsun1.wh.whoi.edu> wrote:
>  
>
>>Has anybody gotten Apache-DBI to work under CentOS4?
>>
>>My installed rpms are:
>>  httpd-2.0.52-12.1.ent.centos4      (came with CentOS4)
>>  mod_perl-1.99_16-4.centos4         (came with CentOS4)
>>  perl-Apache-DBI-0.94-1.2.el4.rf    (from Dag's site)
>>     --this includes Apache::DBI and Apache::AuthDBI
>>
>> ..but when I restart Apache I get:
>>
>>-----------------------------------------------------------------------------
>>Can't locate Apache/Constants.pm in @INC...
>>...
>>BEGIN failed--compilation aborted at
>>/usr/lib/perl5/vendor_perl/5.8.5/Apache/AuthDBI.pm line 21.
>>...
>>Can't load Perl module Apache::AuthDBI
>>-----------------------------------------------------------------------------
>>    
>>
>
>
>Have you got perl-DBI from the CentOS repos installed too? 
>  
>
    Yes, perl-DBI-1.40-8

>It's highly unlikely that Apache 2 won't work with anything that's
>supplied by CentOS/RH.
>
>rpm -qp --requires perl-Apache-DBI-0.94-1.2.el4.rf.noarch.rpm
>perl(Carp)
>perl(DBI)
>perl(constant)
>perl(strict)
>rpmlib(CompressedFileNames) <= 3.0.4-1
>rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>  
>
    I have the perl-Apache-DBI-0.94-1.2.el4.rf rpm installed.

    I have the same setup on an RHEL4 box and CentOS4 box and I get the same
    error.    It's as if there is a mix of Apache2 and mod_perl1 (v1.99) 
stuff.    


    Maybe somebody can simply install the perl-DBI and perl-Apache-DBI 
rpms and try starting
    their Apache2 server.

    Thanks
 
    David Hiltz