install_driver(mysql) failed generated message

kenrbnsn

Active Member
Feb 27, 2002
36
1
308
Hillsborough, NJ, USA
After updating Perl to version 5.8.8, I'm getting this automatically generated email message:

/etc/cron.hourly/modsecparse.pl:


install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl) at (eval 3) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Multiplex, Proxy, Sponge.
at /etc/cron.hourly/modsecparse.pl line 27

What can I do to fix this problem?

WHM 11.1.0 cPanel 11.4.0-R13357
FEDORA 1 i686 - WHM X v3.1.0

Ken
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
run /usr/local/cpanel/bin/checkperlmodules

to make sure all of the perl modules cpanel needs are in stalled
 

kenrbnsn

Active Member
Feb 27, 2002
36
1
308
Hillsborough, NJ, USA
I just ran it. In the middle I get:

Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/DBI -I/usr/include/mysql -g -pipe -march=i386 -mcpu=i686 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"4.004\" -DXS_VERSION=\"4.004\" -fpic "-I/usr/lib/perl5/5.8.8/i686-linux/CORE" dbdimp.c
dbdimp.c: In function `mysql_st_fetch':
dbdimp.c:3429: error: too few arguments to function `mysql_dr_error'
dbdimp.c:3593: error: too few arguments to function `mysql_dr_error'
dbdimp.c: In function `mysql_st_FETCH_internal':
dbdimp.c:3931: error: too few arguments to function `mysql_dr_error'
dbdimp.c:3945: error: too few arguments to function `mysql_dr_error'
dbdimp.c: In function `mysql_bind_ph':
dbdimp.c:4264: error: too few arguments to function `mysql_dr_error'
dbdimp.c:4291: error: too few arguments to function `mysql_dr_error'
dbdimp.c:4303: error: too few arguments to function `mysql_dr_error'
dbdimp.c: In function `mysql_db_reconnect':
dbdimp.c:4465: error: too few arguments to function `mysql_dr_error'
make: *** [dbdimp.o] Error 1

CAPTTOFU/DBD-mysql-4.004.tar.gz
/usr/bin/make -- NOT OK
Running make install
Make had returned bad status, install seems impossible

But at the end, it says:

Tested 99, 99 ok, 0 failed.

Ken
 

kenrbnsn

Active Member
Feb 27, 2002
36
1
308
Hillsborough, NJ, USA
run /scripts/perlinstaller --force Bundle::DBD::mysql

then run it again
Nope. Same problem:

Using DBI 1.56 (for perl 5.008008 on i686-linux) installed in /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/DBI -I/usr/include/mysql -g -pipe -march=i386 -mcpu=i686 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"4.004\" -DXS_VERSION=\"4.004\" -fpic "-I/usr/lib/perl5/5.8.8/i686-linux/CORE" dbdimp.c
dbdimp.c: In function `mysql_st_fetch':
dbdimp.c:3429: error: too few arguments to function `mysql_dr_error'
dbdimp.c:3593: error: too few arguments to function `mysql_dr_error'
dbdimp.c: In function `mysql_st_FETCH_internal':
dbdimp.c:3931: error: too few arguments to function `mysql_dr_error'
dbdimp.c:3945: error: too few arguments to function `mysql_dr_error'
dbdimp.c: In function `mysql_bind_ph':
dbdimp.c:4264: error: too few arguments to function `mysql_dr_error'
dbdimp.c:4291: error: too few arguments to function `mysql_dr_error'
dbdimp.c:4303: error: too few arguments to function `mysql_dr_error'
dbdimp.c: In function `mysql_db_reconnect':
dbdimp.c:4465: error: too few arguments to function `mysql_dr_error'
make: *** [dbdimp.o] Error 1

CAPTTOFU/DBD-mysql-4.004.tar.gz
/usr/bin/make -- NOT OK
Running make install
Make had returned bad status, install seems impossible
perlmod--Install done


Ken
 

ArdeshirB

Registered
Mar 5, 2016
4
0
51
cPanel Access Level
Root Administrator
I was facing the same error while installing mytop tool.
run /scripts/perlinstaller --force Bundle::DBD::mysql

then run it again
Above command resolved the issue.

Also the file "/root/.mytop" should be created while install and using mytop to monitor database queries.