Problema al instalar módulo en CPAN
Felipe Andrés Pino Ramirez
felipe.pino en gmail.com
Mie Dic 30 03:50:42 GMT 2009
Estimados,
Me encuentro tratando de instalar el módulo Nagios::Plugin pero al
intentar instalarlo no hay caso no se instala el output que alcanzo a
rescatar de la respuesta de cpan es:
===========================================
local/lib/site_perl .) at
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped/blib/lib/Na
gios/Plugin/Getopt.pm line 12.
# BEGIN failed--compilation aborted at t/Nagios-Plugin-Getopt-02.t line 6.
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Undefined subroutine &Nagios::Plugin::Functions::_use_die called at
t/Nagios-Plu
gin-Getopt-02.t line 9.
# Looks like you planned 14 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
t/Nagios-Plugin-Getopt-02.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-14
Failed 14/14 tests, 0.00% okay
t/Nagios-Plugin-Getopt-03.........NOK 1/0
# Failed test 'use Nagios::Plugin::Getopt;'
# at t/Nagios-Plugin-Getopt-03.t line 9.
# Tried to use 'Nagios::Plugin::Getopt'.
# Error: Can't locate Params/Validate.pm in @INC (@INC contains:
/usr/cpan/
build/Nagios-Plugin-0.33-CA6ped/blib/lib
/usr/cpan/build/Nagios-Plugin-0.33-CA6p
ed/blib/arch /etc/perl
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /
usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/loca
l/lib/site_perl . /etc/perl /usr/local/lib/perl/5.10.0
/usr/local/share/perl/5.1
0.0 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr
/local/lib/site_perl
.) at /usr/cpan/build/Nagios-Plugin-0.33-CA6ped/blib/lib/Na
gios/Plugin/Getopt.pm line 12.
# BEGIN failed--compilation aborted at t/Nagios-Plugin-Getopt-03.t line 9.
# Compilation failed in require at (eval 6) line 2.
# BEGIN failed--compilation aborted at (eval 6) line 2.
Undefined subroutine &Nagios::Plugin::Functions::_use_die called at
t/Nagios-Plu
gin-Getopt-03.t line 12.
# Looks like you failed 1 test of 1.
# Looks like your test died just after 1.
t/Nagios-Plugin-Getopt-03.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/Nagios-Plugin-Getopt-04.........NOK 1/11
# Failed test 'use Nagios::Plugin::Getopt;'
# at t/Nagios-Plugin-Getopt-04.t line 6.
# Tried to use 'Nagios::Plugin::Getopt'.
# Error: Can't locate Params/Validate.pm in @INC (@INC contains:
/usr/cpan/
build/Nagios-Plugin-0.33-CA6ped/blib/lib
/usr/cpan/build/Nagios-Plugin-0.33-CA6p
ed/blib/arch /etc/perl
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /
usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/loca
l/lib/site_perl . /etc/perl /usr/local/lib/perl/5.10.0
/usr/local/share/perl/5.1
0.0 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr
/local/lib/site_perl
.) at /usr/cpan/build/Nagios-Plugin-0.33-CA6ped/blib/lib/Na
gios/Plugin/Getopt.pm line 12.
# BEGIN failed--compilation aborted at t/Nagios-Plugin-Getopt-04.t line 6.
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Undefined subroutine &Nagios::Plugin::Functions::_use_die called at
t/Nagios-Plu
gin-Getopt-04.t line 9.
# Looks like you planned 11 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
t/Nagios-Plugin-Getopt-04.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-11
Failed 11/11 tests, 0.00% okay
t/Nagios-Plugin-Performance-02....NOK 1/3
# Failed test 'use Nagios::Plugin::Performance;'
# at t/Nagios-Plugin-Performance-02.t line 4.
# Tried to use 'Nagios::Plugin::Performance'.
# Error: Can't locate Params/Validate.pm in @INC (@INC contains:
/usr/cpan/
build/Nagios-Plugin-0.33-CA6ped/blib/lib
/usr/cpan/build/Nagios-Plugin-0.33-CA6p
ed/blib/arch /etc/perl
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /
usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/loca
l/lib/site_perl . /etc/perl /usr/local/lib/perl/5.10.0
/usr/local/share/perl/5.1
0.0 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr
/local/lib/site_perl
.) at /usr/cpan/build/Nagios-Plugin-0.33-CA6ped/blib/lib/Na
gios/Plugin/Functions.pm line 11.
# BEGIN failed--compilation aborted at t/Nagios-Plugin-Performance-02.t line 4.
# Compilation failed in require at
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped/bli
b/lib/Nagios/Plugin/Performance.pm line 14.
# BEGIN failed--compilation aborted at
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped
/blib/lib/Nagios/Plugin/Performance.pm line 14.
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
t/Nagios-Plugin-Performance-02....NOK 2/3
# Failed test 'use_die correctly set on import'
# at t/Nagios-Plugin-Performance-02.t line 7.
# got: 'Undefined subroutine
&Nagios::Plugin::Functions::nagios_die cal
led at
t/Nagios-Plugin-Performance-02.t line 6.
# '
# expected: 'NAGIOS-PLUGIN-PERFORMANCE-02 UNKNOWN - Testing
# '
t/Nagios-Plugin-Performance-02....NOK 3/3
# Failed test 'use Nagios::Plugin::Performance;'
# at t/Nagios-Plugin-Performance-02.t line 10.
# Tried to use 'Nagios::Plugin::Performance'.
# Error: Attempt to reload Nagios/Plugin/Performance.pm aborted.
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at t/Nagios-Plugin-Performance-02.t line 10.
t/Nagios-Plugin-Performance-02....NOK 4/3
# Failed test 'Should not get here if code works correctly because
prior nagio
s_die should have exited'
# at t/Nagios-Plugin-Performance-02.t line 13.
# Looks like you planned 3 tests but ran 1 extra.
# Looks like you failed 4 tests of 4 run.
t/Nagios-Plugin-Performance-02....dubious
Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 1-4
Failed 4/3 tests, -33.33% okay
t/Nagios-Plugin-Performance.......Can't locate Params/Validate.pm in
@INC (@INC
contains:
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped/blib/lib /usr/cpan/build/Nag
ios-Plugin-0.33-CA6ped/blib/arch /etc/perl
/usr/local/lib/perl/5.10.0 /usr/local
/share/perl/5.10.0
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share
/perl/5.10 /usr/local/lib/site_perl . /etc/perl
/usr/local/lib/perl/5.10.0 /usr/
local/share/perl/5.10.0
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/
share/perl/5.10 /usr/local/lib/site_perl .) at
/usr/cpan/build/Nagios-Plugin-0.3
3-CA6ped/blib/lib/Nagios/Plugin/Functions.pm line 11.
BEGIN failed--compilation aborted at
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped/b
lib/lib/Nagios/Plugin/Functions.pm line 11.
Compilation failed in require at t/Nagios-Plugin-Performance.t line 5.
BEGIN failed--compilation aborted at t/Nagios-Plugin-Performance.t line 5.
# Looks like your test died before it could output anything.
t/Nagios-Plugin-Performance.......dubious
Test returned status 255 (wstat 65280, 0xff00)
t/Nagios-Plugin-Range.............NOK 1/151
# Failed test 'use Nagios::Plugin::Range;'
# at t/Nagios-Plugin-Range.t line 7.
# Tried to use 'Nagios::Plugin::Range'.
# Error: Can't locate Params/Validate.pm in @INC (@INC contains:
/usr/cpan/
build/Nagios-Plugin-0.33-CA6ped/blib/lib
/usr/cpan/build/Nagios-Plugin-0.33-CA6p
ed/blib/arch /etc/perl
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /
usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/loca
l/lib/site_perl . /etc/perl /usr/local/lib/perl/5.10.0
/usr/local/share/perl/5.1
0.0 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr
/local/lib/site_perl
.) at /usr/cpan/build/Nagios-Plugin-0.33-CA6ped/blib/lib/Na
gios/Plugin/Functions.pm line 11.
# BEGIN failed--compilation aborted at t/Nagios-Plugin-Range.t line 7.
# Compilation failed in require at
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped/bli
b/lib/Nagios/Plugin/Range.pm line 14.
# BEGIN failed--compilation aborted at
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped
/blib/lib/Nagios/Plugin/Range.pm line 14.
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Can't locate object method "parse_range_string" via package
"Nagios::Plugin::Ran
ge" at t/Nagios-Plugin-Range.t line 28.
# Looks like you planned 151 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
t/Nagios-Plugin-Range.............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-151
Failed 151/151 tests, 0.00% okay
t/Nagios-Plugin-Threshold.........NOK 1/93
# Failed test 'use Nagios::Plugin::Threshold;'
# at t/Nagios-Plugin-Threshold.t line 5.
# Tried to use 'Nagios::Plugin::Threshold'.
# Error: Can't locate Params/Validate.pm in @INC (@INC contains:
/usr/cpan/
build/Nagios-Plugin-0.33-CA6ped/blib/lib
/usr/cpan/build/Nagios-Plugin-0.33-CA6p
ed/blib/arch /etc/perl
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /
usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/loca
l/lib/site_perl . /etc/perl /usr/local/lib/perl/5.10.0
/usr/local/share/perl/5.1
0.0 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr
/local/lib/site_perl
.) at /usr/cpan/build/Nagios-Plugin-0.33-CA6ped/blib/lib/Na
gios/Plugin/Functions.pm line 11.
# BEGIN failed--compilation aborted at t/Nagios-Plugin-Threshold.t line 5.
# Compilation failed in require at
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped/bli
b/lib/Nagios/Plugin/Range.pm line 14.
# BEGIN failed--compilation aborted at
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped
/blib/lib/Nagios/Plugin/Range.pm line 14.
# Compilation failed in require at
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped/bli
b/lib/Nagios/Plugin/Threshold.pm line 11.
# BEGIN failed--compilation aborted at
/usr/cpan/build/Nagios-Plugin-0.33-CA6ped
/blib/lib/Nagios/Plugin/Threshold.pm line 11.
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
t/Nagios-Plugin-Threshold.........NOK 2/93
# Failed test 'use Nagios::Plugin::Functions;'
# at t/Nagios-Plugin-Threshold.t line 6.
# Tried to use 'Nagios::Plugin::Functions'.
# Error: Attempt to reload Nagios/Plugin/Functions.pm aborted.
# Compilation failed in require at (eval 6) line 2.
# BEGIN failed--compilation aborted at t/Nagios-Plugin-Threshold.t line 6.
Global symbol "%STATUS_TEXT" requires explicit package name at
t/Nagios-Plugin-T
hreshold.t line 51.
BEGIN not safe after errors--compilation aborted at
t/Nagios-Plugin-Threshold.t
line 57.
# Looks like you planned 93 tests but only ran 2.
# Looks like you failed 2 tests of 2 run.
# Looks like your test died just after 2.
t/Nagios-Plugin-Threshold.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-93
Failed 93/93 tests, 0.00% okay
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/Nagios-Plugin-01.t 255 65280 13 25 1-13
t/Nagios-Plugin-02.t 255 65280 103 205 1-103
t/Nagios-Plugin-03.t 255 65280 61 120 1-61
t/Nagios-Plugin-04.t 255 65280 26 51 1-26
t/Nagios-Plugin-Functions-01.t 255 65280 113 225 1-113
t/Nagios-Plugin-Functions-02.t 255 65280 37 73 1-37
t/Nagios-Plugin-Functions-03.t 255 65280 8 15 1-8
t/Nagios-Plugin-Getopt-01.t 255 65280 76 151 1-76
t/Nagios-Plugin-Getopt-02.t 255 65280 14 27 1-14
t/Nagios-Plugin-Getopt-03.t 255 65280 1 1 1
t/Nagios-Plugin-Getopt-04.t 255 65280 11 21 1-11
t/Nagios-Plugin-Performance-02.t 4 1024 3 5 1-4
t/Nagios-Plugin-Performance.t 255 65280 ?? ?? ??
t/Nagios-Plugin-Range.t 255 65280 151 301 1-151
t/Nagios-Plugin-Threshold.t 255 65280 93 184 1-93
t/check_stuff.t 13 3328 14 13 1-10 12-14
Failed 16/16 test scripts. 723/724 subtests failed.
Files=16, Tests=724, 1 wallclock secs ( 0.52 cusr + 0.06 csys = 0.58 CPU)
Failed 16/16 test programs. 723/724 subtests failed.
make: *** [test_dynamic] Error 255
TONVOON/Nagios-Plugin-0.33.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TONVOON/Nagios-Plugin-0.33.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store
persistent stat
e
Running make install
make test had returned bad status, won't install without force
Failed during this command:
DROLSKY/Params-Validate-0.94.tar.gz : make NO
TONVOON/Nagios-Plugin-0.33.tar.gz : make_test NO
=====================================================
el contenido del archivo /etc/perl/CPAN/Config.pm es el siguiente:
# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# ~/.cpan/CPAN/MyConfig.pm.
$CPAN::Config = {
'applypatch' => q[/usr/bin/applypatch],
'auto_commit' => q[1],
'build_cache' => q[800],
'build_dir' => q[/usr/cpan/build],
'build_dir_reuse' => q[1],
'build_requires_install_policy' => q[yes],
'bzip2' => q[/bin/bzip2],
'cache_metadata' => q[1],
'check_sigs' => q[0],
'colorize_output' => q[0],
'commandnumber_in_prompt' => q[1],
'cpan_home' => q[/usr/cpan],
'curl' => q[/usr/bin/curl],
'ftp' => q[/usr/bin/ftp],
'ftp_passive' => q[1],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gpg' => q[/usr/bin/gpg],
'gzip' => q[/bin/gzip],
'histfile' => q[/usr/cpan/histfile],
'histsize' => q[100],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/usr/cpan/sources],
'load_module_verbosity' => q[v],
'lynx' => q[/usr/bin/lynx],
'make' => q[/usr/bin/make],
'make_arg' => q[-j3],
'make_install_arg' => q[-j3],
'make_install_make_command' => q[/usr/bin/make],
'makepl_arg' => q[INSTALLDIRS=site],
'mbuild_arg' => q[],
'mbuild_install_arg' => q[],
'mbuild_install_build_command' => q[./Build],
'mbuildpl_arg' => q[],
'ncftp' => q[],
'ncftpget' => q[/usr/bin/ncftpget],
'no_proxy' => q[],
'pager' => q[/usr/bin/less],
'patch' => q[/usr/bin/patch],
'prefer_installer' => q[MB],
'prefs_dir' => q[/usr/cpan/prefs],
'prerequisites_policy' => q[follow],
'scan_cache' => q[atstart],
'shell' => q[/bin/bash],
'show_unparsable_versions' => q[0],
'show_upload_date' => q[0],
'show_zero_versions' => q[0],
'tar' => q[/bin/tar],
'tar_verbosity' => q[v],
'term_is_latin' => q[1],
'term_ornaments' => q[1],
'test_report' => q[0],
'unzip' => q[/usr/bin/unzip],
'urllist' => [q[ftp://cpan.dcc.uchile.cl/pub/lang/cpan/]],
'use_sqlite' => q[0],
'wget' => q[/usr/bin/wget],
'yaml_load_code' => q[0],
'yaml_module' => q[YAML],
};
1;
__END__
alguna sugerencia?
Más información sobre la lista de distribución ubuntu-es