cPanel/WHM – [checkperlmodules] The perl module SQL::Statement could not be installed

There is a cyclic dependency for this perl module which is causing problem in installation. You would receive email like this:

Subject: [checkperlmodules] The perl module SQL::Statement could not be installed.

This module is required by cPanel, and the system may not function correctly until it is installed, and functional.  Below is the results of the auto-install attempt:

Test Run
==============
Can’t locate SQL/Statement.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at – line 1.
BEGIN failed–compilation aborted at – line 1.

Solution of this problem is to install the perl module manually.

cd /home/.cpan/sources/authors/id/R/RE/REHSACK/
wget http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/SQL-Statement-1.31_002.tar.gz
tar zxvf SQL-Statement-1.31_002.tar.gz
cd SQL-Statement-1.32 && perl Makefile.PL && make && make test && make install

And verify using

/scripts/checkperlmodules

Leave a Reply

Your email address will not be published. Required fields are marked *