LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error installing MySQL perl module (https://www.linuxquestions.org/questions/linux-software-2/error-installing-mysql-perl-module-763046/)

Metropolis 10-19-2009 05:00 PM

Error installing MySQL perl module
 
Hello everyone!

Im trying to install bugzilla on a CentOS server. I have all of the modules installed correctly except for the mysql perl module. I have already tested that php and mysql are installed and working properly.

Here is the command im typing in to install the module.

Code:

[root@localhost bugzilla]# /usr/bin/perl install-module.pl DBD::mysql
and the results start like this

Code:

Removing previously used /root/.cpan/build/DBD-mysql-4.013

CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.013.tar.gz


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'testuser' 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 'testuser'@'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    ) = testuser

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

and end like this

Code:

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 searched all over the internet before coming here, and I can not find anything that explains whats causing this. I already made sure there was a test database up and working and there is a user with the name testuser.

Any help would be great!

Thanks,
Metropolis

Metropolis 10-20-2009 09:28 AM

If nobody knows how to fix this.....Does anyone know of a repository I can use to install bugzilla through YUM? I know that Fedora 11 has it in the extras repository, but I do not know what the address is to use that one.

Metropolis

chrism01 10-21-2009 12:50 AM

EPEL repo http://download.fedora.redhat.com/pu...r_b.group.html

Metropolis 10-22-2009 09:49 AM

Found the problem
 
To fix this problem you have to install the mysql-devel package and then run it again. I wish the error message would say something to that effect but oh well, at least we know the answer now.

Metropolis


All times are GMT -5. The time now is 08:34 PM.