Vários pacotes perl (incluindo cpan e re.pl) não funcionam após a atualização de 12.04 para 14.04

3

Vários pacotes perl pararam de funcionar após a atualização de 12.04 para 14.04.

Por exemplo, cpan me dá:

Attempt to reload Scalar/Util.pm aborted.
Compilation failed in require at /usr/local/share/perl/5.18.2/CPAN/Meta/Requirements.pm line 35.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.18.2/CPAN/Meta/Requirements.pm line 35.
Compilation failed in require at /usr/share/perl/5.18/CPAN/Distribution.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl/5.18/CPAN/Distribution.pm line 7.
Compilation failed in require at /usr/share/perl/5.18/CPAN.pm line 25.
BEGIN failed--compilation aborted at /usr/share/perl/5.18/CPAN.pm line 25.
Compilation failed in require at /usr/share/perl/5.18/App/Cpan.pm line 219.
BEGIN failed--compilation aborted at /usr/share/perl/5.18/App/Cpan.pm line 219.
Compilation failed in require at /usr/local/bin/cpan line 9.
BEGIN failed--compilation aborted at /usr/local/bin/cpan line 9.

e re.pl me dão:

Perl API version v5.14.0 of List::Util does not match v5.18.0 at /usr/share/perl/5.18/XSLoader.pm line 92.
Compilation failed in require at /home/abc/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Scalar/Util.pm line 11.
Compilation failed in require at /usr/local/lib/perl/5.18.2/Moose.pm line 9.
BEGIN failed--compilation aborted at /usr/local/lib/perl/5.18.2/Moose.pm line 9.
Compilation failed in require at /usr/local/share/perl/5.18.2/Devel/REPL/Script.pm line 6.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.18.2/Devel/REPL/Script.pm line 6.
Compilation failed in require at /usr/local/bin/re.pl line 6.
BEGIN failed--compilation aborted at /usr/local/bin/re.pl line 6.

Existe alguém para simplesmente obter uma nova instalação de perl e todos os seus pacotes?

    
por dg123 16.10.2014 / 22:26

1 resposta

2

Como dito nos comentários acima, há um conflito entre 5,14 e 5,18.

A solução proposta estava renomeando ~/perl5 para ~/perl5_old , de forma que cpan e re.pl funcionem novamente.

Para responder sua última pergunta, eu gerencio ~/perl5 para executar 5.18 usando perlbrew .

Veja Como posso instalar um novo Perl sem danificar a instalação do sistema?

    
por Sylvain Pineau 30.10.2014 / 11:16