LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-19-2009, 05:00 PM   #1
Metropolis
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Rep: Reputation: 15
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
 
Old 10-20-2009, 09:28 AM   #2
Metropolis
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 10-21-2009, 12:50 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,734

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
EPEL repo http://download.fedora.redhat.com/pu...r_b.group.html
 
Old 10-22-2009, 09:49 AM   #4
Metropolis
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
list perl module & install perl module DBD::mysql linson_85 Linux - Newbie 4 06-22-2009 10:42 AM
perl dbi module error "error at dbi:" dbi-> connect statement mysql haxpak Linux - Newbie 1 02-25-2009 08:22 AM
Journal error on an EXT3 filesystem while installing perl module garyg007 Slackware 2 12-27-2008 02:53 PM
Error compiling perl-DBD-MySQL after upgrading to MySQL 4.1 pitaro920 Linux - Software 1 01-16-2006 04:28 PM
installing perl module vickr1z Linux - Newbie 1 09-22-2004 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration