[SP-pm] [cpan - o retorno]

André Garcia Carneiro andre.garcia.carneir em terra.com.br
Quarta Janeiro 24 11:33:39 PST 2007


Salve Monges!


Tive que me ausentar devido a forças maiores, mas continuo com o meu problema do CPAN. Espero que não se
importem em me ajudar com isso. 

Só pra re-lembrar, estou tentando instalar o Catalyst no Slackware 10.1, e o meu CPAN não funciona direito. O
problema aparente é que no final da compilação ele não consegue instalar os pacotes nos seus respectivos
diretórios, por alguma razão. Como eu costumo resolver isso? Baixo o source e compilo na mão, mas com o
Catalyst fica inviável, já que são muitas dependências.

Lembrando mais:

S.O. : Linux Slackware 10.1

usuário rodando o cpan: root

@INC (# perl -e "print @INC;")  : 
/usr/lib/perl5/5.8.7/i486-linux/usr/lib/perl5/5.8.7/usr/lib/perl5/site_perl/5.8.7/i486-linux/usr/lib/perl5/site_perl/5.8.7/usr/lib/perl5/site_perl


Abaixo coloquei o ciclo de instalação do pacote através do cpan(como root digite 'cpan' e depois fiz install
Chess::Game), logo abaixo. Um dos problemas que eu notei é que ele não conseguiu encontrar a package
List::Compare, embora tenha continuado a instalação(pode ser q a instalação dessa package não seja mandatória).
Tentei instalar a List::Compare também, mas embora não tenha ocorrido nenhum erro, quando tento fazer use na
package, perl me retorna uma mensagem dizendo que não encontrou a p... da package em @INC.

Não sei se ajuda, mas os builds estão sendo construídos em /root/.cpan/Build. 

Por favor me ajudem!!! 



Resultado do teste de instalação do CPAN, para o pacote Chess::Game:

cpan[4]> install Chess::Game
Running install for module Chess::Game
Running make for B/BJ/BJR/Chess-0.6.0.tar.gz
Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.7/CPAN/HandleConfig.pm line 335, <FIN>
line 4.

Trying with "/usr/bin/wget -O /root/.cpan/sources/authors/id/B/BJ/BJR/Chess-0.6.0.tar" to get
    ftp://ftp.is.co.za/programming/perl/CPAN/authors/id/B/BJ/BJR/Chess-0.6.0.tar.gz
--17:12:14--  ftp://ftp.is.co.za/programming/perl/CPAN/authors/id/B/BJ/BJR/Chess-0.6.0.tar.gz
           => `/root/.cpan/sources/authors/id/B/BJ/BJR/Chess-0.6.0.tar'
Resolving ftp.is.co.za... 196.4.160.12
Connecting to ftp.is.co.za|196.4.160.12|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /programming/perl/CPAN/authors/id/B/BJ/BJR ... done.
==> PASV ... done.    ==> RETR Chess-0.6.0.tar.gz ... done.
Length: 22,058 (22K) (unauthoritative)

100%[===============================================================================>] 22,058        10.43K/s

17:12:27 (10.42 KB/s) - `/root/.cpan/sources/authors/id/B/BJ/BJR/Chess-0.6.0.tar' saved [22058]

CPAN: checksum security checks disabledbecause Digest::SHA not installed.
Chess-0.6.0/
Chess-0.6.0/lib/
Chess-0.6.0/lib/Chess.pm
Chess-0.6.0/lib/Chess/
Chess-0.6.0/lib/Chess/Game/
Chess-0.6.0/lib/Chess/Game/MoveListEntry.pm
Chess-0.6.0/lib/Chess/Game/MoveList.pm
Chess-0.6.0/lib/Chess/Game.pm
Chess-0.6.0/lib/Chess/Board.pm
Chess-0.6.0/lib/Chess/Piece.pm
Chess-0.6.0/lib/Chess/Board/
Chess-0.6.0/lib/Chess/Piece/
Chess-0.6.0/lib/Chess/Piece/Pawn.pm
Chess-0.6.0/lib/Chess/Piece/Bishop.pm
Chess-0.6.0/lib/Chess/Piece/Queen.pm
Chess-0.6.0/lib/Chess/Piece/Rook.pm
Chess-0.6.0/lib/Chess/Piece/King.pm
Chess-0.6.0/lib/Chess/Piece/Knight.pm
Chess-0.6.0/MANIFEST
Chess-0.6.0/t/
Chess-0.6.0/t/game.t
Chess-0.6.0/t/movelist.t
Chess-0.6.0/t/queen.t
Chess-0.6.0/t/king.t
Chess-0.6.0/t/movelistentry.t
Chess-0.6.0/t/knight.t
Chess-0.6.0/t/board.t
Chess-0.6.0/t/rook.t
Chess-0.6.0/t/stalemate.t
Chess-0.6.0/t/pawn.t
Chess-0.6.0/t/checkmate.t
Chess-0.6.0/t/bishop.t
Chess-0.6.0/t/piece.t
Chess-0.6.0/TODO
Chess-0.6.0/Changes
Chess-0.6.0/README
Chess-0.6.0/Makefile.PL

  CPAN.pm: Going to build B/BJ/BJR/Chess-0.6.0.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Chess
cp lib/Chess/Game.pm blib/lib/Chess/Game.pm
cp lib/Chess/Game/MoveList.pm blib/lib/Chess/Game/MoveList.pm
cp lib/Chess/Piece/King.pm blib/lib/Chess/Piece/King.pm
cp lib/Chess/Board.pm blib/lib/Chess/Board.pm
cp lib/Chess/Piece/Queen.pm blib/lib/Chess/Piece/Queen.pm
cp lib/Chess/Piece/Knight.pm blib/lib/Chess/Piece/Knight.pm
cp lib/Chess/Piece/Pawn.pm blib/lib/Chess/Piece/Pawn.pm
cp lib/Chess/Game/MoveListEntry.pm blib/lib/Chess/Game/MoveListEntry.pm
cp lib/Chess.pm blib/lib/Chess.pm
cp lib/Chess/Piece.pm blib/lib/Chess/Piece.pm
cp lib/Chess/Piece/Bishop.pm blib/lib/Chess/Piece/Bishop.pm
cp lib/Chess/Piece/Rook.pm blib/lib/Chess/Piece/Rook.pm
Manifying blib/man3/Chess::Game::MoveList.3
Manifying blib/man3/Chess::Game.3
Manifying blib/man3/Chess::Piece::King.3
Manifying blib/man3/Chess::Piece::Queen.3
Manifying blib/man3/Chess::Board.3
Manifying blib/man3/Chess::Piece::Knight.3
Manifying blib/man3/Chess::Piece::Pawn.3
Manifying blib/man3/Chess::Game::MoveListEntry.3
Manifying blib/man3/Chess.3
Manifying blib/man3/Chess::Piece.3
Manifying blib/man3/Chess::Piece::Rook.3
Manifying blib/man3/Chess::Piece::Bishop.3
  /usr/bin/make  -- OK
Running make test
Prepending /root/.cpan/build/IO-Compress-Base-2.003/blib/arch /root/.cpan/build/IO-Compress-Base-2.003/blib/lib
/root/.cpan/build/PathTools-3.24/blib/arch /root/.cpan/build/PathTools-3.24/blib/lib
/root/.cpan/build/Compress-Raw-Zlib-2.003/blib/arch /root/.cpan/build/Compress-Raw-Zlib-2.003/blib/lib
/root/.cpan/build/File-Which-0.05/blib/arch /root/.cpan/build/File-Which-0.05/blib/lib to PERL5LIB.
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')"
t/*.t
t/bishop...........ok
t/board............Can't locate List/Compare.pm in @INC (@INC contains: /root/.cpan/build/Chess-0.6.0/blib/lib
/root/.cpan/build/Chess-0.6.0/blib/arch /root/.cpan/build/IO-Compress-Base-2.003/blib/arch
/root/.cpan/build/IO-Compress-Base-2.003/blib/lib /root/.cpan/build/PathTools-3.24/blib/arch
/root/.cpan/build/PathTools-3.24/blib/lib /root/.cpan/build/Compress-Raw-Zlib-2.003/blib/arch
/root/.cpan/build/Compress-Raw-Zlib-2.003/blib/lib /root/.cpan/build/File-Which-0.05/blib/arch
/root/.cpan/build/File-Which-0.05/blib/lib /usr/lib/perl5/5.8.7/i486-linux /usr/lib/perl5/5.8.7
/usr/lib/perl5/site_perl/5.8.7/i486-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl .) at
t/board.t line 4.
BEGIN failed--compilation aborted at t/board.t line 4.
# Looks like your test died before it could output anything.
t/board............dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-36
        Failed 36/36 tests, 0.00% okay
t/checkmate........ok
t/game.............ok
t/king.............ok
t/knight...........ok
t/movelist.........ok
t/movelistentry....ok
t/pawn.............ok
t/piece............ok
t/queen............ok
t/rook.............ok
t/stalemate........ok
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/board.t    255 65280    36   72 200.00%  1-36
Failed 1/13 test scripts, 92.31% okay. 36/310 subtests failed, 88.39% okay.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
  BJR/Chess-0.6.0.tar.gz                       : make_test NO

cpan[5]> 








--
André Garcia Carneiro
Developer(Perl/PHP)
Member of "São Paulo Perl Mongers" - http://sao-paulo.pm.org



Mais detalhes sobre a lista de discussão SaoPaulo-pm