[rt-users] Solaris 10 + Apache 2 + mysql + DBD

Ben Robson ben.robson at classicblue.com.au
Wed Nov 9 00:12:37 EST 2005


Hi all.

 

I am working on getting RT working on a Solaris 10 x86 system using
Apache 2, mod_perl2 and Mysql.

 

When I start Apache 2 it fires up fine.  However as it accepts a
connection I get the Apache 2 clean install test page and the following
log entry shows up in error_log:

 

[Wed Nov 09 15:58:58 2005] [error] [client an.ip.address] DBD::mysql
initialisation failed: Can't locate object method "driver" via package
"DBD::mysql" at /opt/csw/lib/perl/csw/DBI.pm line 747.\n\nPerhaps the
capitalisation of DBD 'mysql' isn't right. at
/opt/csw/share/perl/site_perl/DBIx/SearchBuilder/Handle.pm line 108\n

 

 

The following is where my DBD.pm perl module instances are located:

/opt/csw/share/perl/site_perl/DBIx/DBSchema/DBD.pm

/opt/csw/lib/perl/csw/DBI/DBD.pm

 

In both cases I have tried removing one and then the other in case (long
shot) there was some interference.

 

The RT section of httpd.conf reads like:

 

<VirtualHost an.ip.address>

    ServerName a.url.com.au

    DocumentRoot /opt/rt3/share/html

    AddDefaultCharset UTF-8

 

    PerlModule Apache2 Apache2::compat

 

    PerlModule Apache2 Apache::DBI

    PerlRequire /opt/rt3/bin/webmux.pl

 

    <Location>

        SetHandler perl-script

        PerlHandler RT::Mason

    </Location>

 

    RedirectMatch permanent (.*)/$ http://fsck.com$1/index.html
<http://fsck.com$1/index.html> 

</VirtualHost>

 

The MySQL database is located on another machine, but I have confirmed
that this is accessible using the local mysql client and have confirmed
that the mysql access credentials are correct in the RT configuration.

 

As some of you may have worked out, I am using the BlastWave Solaris
packages, as this has yielded the best result so far.  I am using their
Perl, Apache2, Mysql4, gcc3 and perl modules where available.  All other
modules have been installed via CPAN.

 

So, with all this in hand, does anyone have any thoughts as to why the
"driver" object method might not be getting found?

 

Thanks,

BenR

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20051109/c045914f/attachment.htm>


More information about the rt-users mailing list