Dependências módulos do Perl [RESOLVIDO]

1. Dependências módulos do Perl [RESOLVIDO]

Thiago Dias
thiago_dias

(usa CentOS)

Enviado em 02/02/2012 - 10:39h

Bom dia, estou instalando o Request Tracker no Centos 5.7 e estou com problemas na instalação dos módulos Perl necessários.
Ao executar o make testdeps, foi retornado que estão faltando os seguintes módulos:

Plack Test::TCP
HTML::Mason::PSGIHandler Plack::Test
Plack::Handler::Starlet

Porém ao instalar qualquer um desses módulos

perl -MCPAN -e 'install Plack'

Ele acusa a falta da dependência Test::TCP

Porém ao instalar o Test::TCP

perl -MCPAN -e 'install Test::TCP'


Ele gera um erro e não estou conseguindo instalar. Segue a saída completa do comando de instalação acima:

Reading '/root/.cpan/Metadata'
Database was generated on Tue, 31 Jan 2012 19:11:16 GMT
Running install for module 'Test::TCP'
Running make for T/TO/TOKUHIROM/Test-TCP-1.14.tar.gz
Checksum for /root/.cpan/sources/authors/id/T/TO/TOKUHIROM/Test-TCP-1.14.tar.gz ok

CPAN.pm: Building T/TO/TOKUHIROM/Test-TCP-1.14.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Test::TCP
Writing MYMETA.yml and MYMETA.json
cp lib/Test/TCP.pm blib/lib/Test/TCP.pm
Manifying blib/man3/Test::TCP.3pm
lib/Test/TCP.pm:178: Unknown command paragraph "=encoding utf8"
TOKUHIROM/Test-TCP-1.14.tar.gz
/usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t
t/00_compile.t .............. 1/1 # Test::More: 0.98
t/00_compile.t .............. ok
t/01_simple.t ............... ok
t/02_abrt.t ................. 1/2 # your server received SIGABRT
t/02_abrt.t ................. ok
t/03_return_when_sigterm.t .. ok
t/04_die.t .................. ok
t/05_sigint.t ............... Use of uninitialized value in subroutine entry at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/POSIX.pm line 42.
Use of uninitialized value in subroutine entry at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/POSIX.pm line 44.
t/05_sigint.t ............... 1/2
# Failed test at t/05_sigint.t line 19.
Use of uninitialized value in subroutine entry at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/POSIX.pm line 42.
Use of uninitialized value in subroutine entry at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/POSIX.pm line 44.

# Failed test 'sigint'
# at t/05_sigint.t line 20.
# got: 'ZERO'
# expected: 'INT'
# Looks like you failed 2 tests of 2.
t/05_sigint.t ............... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/06_nest.t ................. ok
t/07_optional.t ............. ok
t/08_exit.t ................. ok
t/09_fork.t ................. ok
t/10_oo.t ................... ok

Test Summary Report
-------------------
t/05_sigint.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
Files=11, Tests=68, 10 wallclock secs ( 0.05 usr 0.02 sys + 0.66 cusr 0.13 csys = 0.86 CPU)
Result: FAIL
Failed 1/11 test programs. 2/68 subtests failed.
make: ** [test_dynamic] Erro 255
TOKUHIROM/Test-TCP-1.14.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TOKUHIROM/Test-TCP-1.14.tar.gz
Running make install
make test had returned bad status, won't install without force


Agradeço desde já.
Abraços


  


2. Resolvido

Thiago Dias
thiago_dias

(usa CentOS)

Enviado em 02/02/2012 - 11:42h

Resolvi o problema baixando o source do Test::TCP em http://search.cpan.org/ e compilando o pacote. Depois de instalado consegui instalar as dependências usando o própio CPAN da seguinte forma:

perl -MCPAN -e 'install Nome_Do_Modulo'




3. Re: Dependências módulos do Perl [RESOLVIDO]

Wellington Thiago da Silva
wellingtonSP

(usa Debian)

Enviado em 23/04/2013 - 12:09h

Grande Thiago,




man, estou com um problema no perl-YAML, ele fala que não está instalado só que eu já instalei essa porra um monte de vezes!

make[1]: Saindo do diretório `/root/.cpan/build/Convert-Color-0.08-pX8_iB'
PEVANS/Convert-Color-0.08.tar.gz
/usr/bin/make -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
make[1]: Entrando no diretório `/root/.cpan/build/Convert-Color-0.08-pX8_iB'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
Can't locate Test/Harness.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /usr/share/perl5/ExtUtils/Command/MM.pm line 50.
make[1]: ** [test_dynamic] Erro 2
make[1]: Saindo do diretório `/root/.cpan/build/Convert-Color-0.08-pX8_iB'
PEVANS/Convert-Color-0.08.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PEVANS/Convert-Color-0.08.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make install
make test had returned bad status, won't install without force
Can't exec "./sbin/rt-test-dependencies": Arquivo ou diretório não encontrado at ./sbin/rt-test-dependencies line 419.


sabe como resolver essa pendenga??






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts