Problem update comodo modsecurity rule set

dierkurakura

Verified User
Joined
Oct 16, 2015
Messages
12
Hi
I just installed directadmin and have installed cumtombuild 2.0.

I use Nginx_apache and tried to update comodo modsecurity rule set, but found error.

Code:
Executing /usr/local/directadmin/plugins/custombuild/admin/build modsecurity_rules
Installing Comodo Rule Set for ModSecurity...
Updating to latest CWAF client version
Can't locate LWP/Simple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cwaf/scripts/update-client.pl line 10.
BEGIN failed--compilation aborted at /usr/local/cwaf/scripts/update-client.pl line 10.
Can't locate LWP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/Comodo/CWAF/ClientAPI.pm line 8.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Comodo/CWAF/ClientAPI.pm line 8.
Compilation failed in require at /usr/local/cwaf/scripts/updater.pl line 11.
BEGIN failed--compilation aborted at /usr/local/cwaf/scripts/updater.pl line 11.
Installation of ModSecurity Rule Set has been finished.
Done!

Do you know how fix this?
thank you
regards
 
Hi
I have tried perl -MCPAN -e'install "LWP::Simple"'
but there is problem with CPAN.pm.

Code:
[root@madara ~]# perl -MCPAN -e'install "LWP::Simple"'
Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.


i tried yum install perl-CPAN
then install LWP/simple again perl -MCPAN -e 'install LWP::simple'.
Code:
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Reading '/root/.cpan/sources/modules/0****kages.details.txt.gz'
Warning: Your /root/.cpan/sources/modules/0****kages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your /root/.cpan/sources/modules/0****kages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
DONE
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
Can't locate object method "data" via package "CPAN::Modulelist" (perhaps you forgot to load "CPAN::Modulelist"?) at (eval 20) line 1.
 at /usr/share/perl5/CPAN/Index.pm line 524.
        CPAN::Index::rd_modlist('CPAN::Index', '/root/.cpan/sources/modules/03modlist.data.gz') called at /usr/share/perl5/CPAN/Index.pm line 85
        CPAN::Index::reload('CPAN::Index') called at /usr/share/perl5/CPAN.pm line 976
        CPAN::exists('CPAN=HASH(0x30bf8f0)', 'CPAN::Module', 'LWP::simple') called at /usr/share/perl5/CPAN/Shell.pm line 1256
        CPAN::Shell::expandany('CPAN::Shell', 'LWP::simple') called at /usr/share/perl5/CPAN/Shell.pm line 1681
        CPAN::Shell::rematein('CPAN::Shell', 'install', 'LWP::simple') called at /usr/share/perl5/CPAN/Shell.pm line 1977
        CPAN::Shell::__ANON__('CPAN::Shell', 'LWP::simple') called at /usr/share/perl5/CPAN.pm line 199
        CPAN::AUTOLOAD('LWP::simple') called at -e line 1

tried to install CPAN::Modulelist also same problem.
 
For CentOS it is

Code:
yum install perl-libwww-perl

For Debian it is

Code:
apt-get install libwww-perl
 
Back
Top