Page 1 of 1

Acme-Terror-UK "Can't locate Encode/Loacle.pm"

Posted: Wed Jul 20, 2011 9:50 am
by Malcz86
Hey all,

Been messing around with the UK terror alert plugin just as a fun way to demonstrate to colleagues/managers what can be done with Nagios. How ever the plugin does not work. If I try to run the plugin or install the "Acme-Terror-UK" perl module during the "make test" I get the following error.
Error: Can't locate Encode/Locale.pm in @INC (@INC contains: /tmp/Acme-Terror-UK-0.06/blib/lib /tmp/Acme-Terror-UK-0.06/blib/arch /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent.pm line 976.
Any ideas? am I missing a dependency?

Re: Acme-Terror-UK "Can't locate Encode/Loacle.pm"

Posted: Wed Jul 20, 2011 11:48 am
by nscott
Give

Code: Select all

cpan -i Encode::Locale
A try.

Re: Acme-Terror-UK "Can't locate Encode/Loacle.pm"

Posted: Wed Jul 20, 2011 11:52 am
by lmiltchev
You can also read a little bit more about this module and dependencies here:

http://search.cpan.org/~gaas/Encode-Loc ... /Locale.pm

Re: Acme-Terror-UK "Can't locate Encode/Loacle.pm"

Posted: Thu Jul 21, 2011 4:50 am
by Malcz86
Thanks,

Downloading Encode::Locale fixed the installer. But the plugin still does not work. Then when I create a perl script as per the CPAN article to fetch the current alert level it just displays
Current terror alert level is:
and no data :( is there still something I'm doing wrong or the actual module just broken? perhaps a redesign of the MI5 site has broken it.

All other dependencies are present.