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
|