DBD::mysql Module Error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

DBD::mysql Module Error

Metropolis
Hey Everyone,

I have checked to make sure that mysql is working fine, and all of the modules are installed correctly except for the mysql one. Here is the ./checksetup.pl --check-modules output right now......


* This is Bugzilla 3.4.2 on perl 5.8.8
* Running on Linux 2.6.18-128.el5xen #1 SMP Wed Jan 21 11:55:02 EST 2009

Checking perl modules...
Checking for              CGI.pm (v3.21)   ok: found v3.48
Checking for          Digest-SHA (any)     ok: found v5.47
Checking for            TimeDate (v2.21)   ok: found v2.23
Checking for            DateTime (v0.28)   ok: found v0.50
Checking for   DateTime-TimeZone (v0.71)   ok: found v1.01
Checking for                 DBI (v1.41)   ok: found v1.52
Checking for    Template-Toolkit (v2.22)   ok: found v2.22
Checking for          Email-Send (v2.00)   ok: found v2.198
Checking for          Email-MIME (v1.861)  ok: found v1.863
Checking for Email-MIME-Encodings (v1.313)  ok: found v1.313
Checking for Email-MIME-Modifier (v1.442)  ok: found v1.444
Checking for                 URI (any)     ok: found v1.35

Checking available perl DBD modules...
Checking for              DBD-Pg (v1.45)    not found
Checking for           DBD-mysql (v4.00)    found v3.0007
Checking for          DBD-Oracle (v1.19)    not found

The following Perl modules are optional:
Checking for                  GD (v1.20)    not found
Checking for               Chart (v1.0)     not found
Checking for         Template-GD (any)      not found
Checking for          GDTextUtil (any)      not found
Checking for             GDGraph (any)      not found
Checking for            XML-Twig (any)     ok: found v3.32
Checking for          MIME-tools (v5.406)  ok: found v5.427
Checking for         libwww-perl (any)     ok: found v2.033
Checking for         PatchReader (v0.9.4)  ok: found v0.9.5
Checking for          PerlMagick (any)      not found
Checking for           perl-ldap (any)     ok: found v0.39
Checking for         Authen-SASL (any)     ok: found v2.13
Checking for          RadiusPerl (any)     ok: found v0.15
Checking for           SOAP-Lite (v0.710.06) ok: found v0.710.10
Checking for         HTML-Parser (v3.40)   ok: found v3.55
Checking for       HTML-Scrubber (any)     ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any)     ok: found v1.316
Checking for         Email-Reply (any)     ok: found v1.202
Checking for         TheSchwartz (any)     ok: found v1.07
Checking for      Daemon-Generic (any)     ok: found v0.61
Checking for            mod_perl (v1.999022) ok: found v2.000004
***********************************************************************
* DATABASE ACCESS                                                     *
***********************************************************************
* In order to access your database, Bugzilla requires that the        *
* correct "DBD" module be installed for the database that you are     *
* running. See below for the correct command to run to install the    *
* appropriate module for your database.                               *
***********************************************************************
* OPTIONAL MODULES                                                    *
***********************************************************************
* Certain Perl modules are not required by Bugzilla, but by           *
* installing the latest version you gain access to additional         *
* features.                                                           *
*                                                                     *
* The optional modules you do not have installed are listed below,    *
* with the name of the feature they enable. Below that table are the  *
* commands to install each module.                                    *
***********************************************************************
* MODULE NAME * ENABLES FEATURE(S)                                    *
***********************************************************************
*          GD * Graphical Reports, New Charts, Old Charts             *
*       Chart * New Charts, Old Charts                                *
* Template-GD * Graphical Reports                                     *
*  GDTextUtil * Graphical Reports                                     *
*     GDGraph * Graphical Reports                                     *
*  PerlMagick * Optionally Convert BMP Attachments to PNGs            *
***********************************************************************
COMMANDS TO INSTALL OPTIONAL MODULES:

             GD: /usr/bin/perl install-module.pl GD
          Chart: /usr/bin/perl install-module.pl Chart::Base
    Template-GD: /usr/bin/perl install-module.pl Template::Plugin::GD::Image
     GDTextUtil: /usr/bin/perl install-module.pl GD::Text
        GDGraph: /usr/bin/perl install-module.pl GD::Graph
     PerlMagick: /usr/bin/perl install-module.pl Image::Magick

YOU MUST RUN ONE OF THE FOLLOWING COMMANDS (depending on which database
you use):

PostgreSQL: /usr/bin/perl install-module.pl DBD::Pg
     MySQL: /usr/bin/perl install-module.pl DBD::mysql
    Oracle: /usr/bin/perl install-module.pl DBD::Oracle


To attempt an automatic install of every required and optional module
with one command, do:

  /usr/bin/perl install-module.pl --all


Now, whenever I type in the command: /usr/bin/perl install-module.pl DBD::mysqlI
I get the following at the begining,

PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'cmetrolis' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'cmetrolis'@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.pl --testuser=username

I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I/usr/include/mysql  -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC   -DUNIV_LINUX -DUNIV_LINUX
  embedded      (mysql_config) =
  libs          (mysql_config) = -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto
  mysql_config  (guessed     ) = mysql_config
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 1
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (default     ) =
  testsocket    (default     ) =
  testuser      (guessed     ) = cmetrolis

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.


and I get the following at the end,

dbdimp.c:4460: warning: passing argument 1 of â__builtin___memset_chkâ discards qualifiers from pointer target type
dbdimp.c:4460: error: âimp_dbh_tâ has no member named âpmysqlâ
dbdimp.c:4460: error: âimp_dbh_tâ has no member named âpmysqlâ
dbdimp.c:4460: warning: passing argument 1 of â__memset_ichkâ discards qualifiers from pointer target type
dbdimp.c:4468: error: âimp_dbh_tâ has no member named âpmysqlâ
dbdimp.c:4468: error: âimp_dbh_tâ has no member named âpmysqlâ
dbdimp.c:4469: warning: passing argument 3 of âmysql_dr_errorâ makes pointer from integer without a cast
dbdimp.c:4470: error: âimp_dbh_tâ has no member named âpmysqlâ
dbdimp.c:4470: error: âimp_dbh_tâ has no member named âpmysqlâ
dbdimp.c:4470: error: âimp_dbh_tâ has no member named âpmysqlâ
dbdimp.c:4470: warning: passing argument 1 of â__builtin___memcpy_chkâ discards qualifiers from pointer target type
dbdimp.c:4470: warning: passing argument 3 of â__builtin___memcpy_chkâ makes integer from pointer without a cast
dbdimp.c:4470: error: âimp_dbh_tâ has no member named âpmysqlâ
dbdimp.c:4470: warning: passing argument 1 of â__memcpy_ichkâ discards qualifiers from pointer target type
dbdimp.c:4470: warning: passing argument 3 of â__memcpy_ichkâ makes integer from pointer without a cast
dbdimp.c:4471: error: âimp_dbh_tâ has no member named âstatsâ
dbdimp.c:4471: error: request for member âauto_reconnects_failedâ in something not a structure or union
dbdimp.c:4471: error: invalid lvalue in increment
dbdimp.c:4471: warning: statement with no effect
dbdimp.c:4480: error: âimp_dbh_tâ has no member named âstatsâ
dbdimp.c:4480: error: request for member âauto_reconnects_okâ in something not a structure or union
dbdimp.c:4480: error: invalid lvalue in increment
dbdimp.c:4480: warning: statement with no effect
dbdimp.c: In function âmysql_db_quoteâ:
dbdimp.c:4640: warning: implicit declaration of function âmysql_real_escape_stringâ
dbdimp.c:4640: error: âimp_dbh_tâ has no member named âpmysqlâ
dbdimp.c: In function âmysql_db_last_insert_idâ:
dbdimp.c:4663: error: âimp_dbh_tâ has no member named âpmysqlâ
dbdimp.c:4663: warning: passing argument 2 of âPerl_sv_2mortalâ makes pointer from integer without a cast
make: *** [dbdimp.o] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible


I have looked all over the place for the solution to this problem and I just can not find it. Any help is appreciated!

Thanks,
Metropolis