Como eu corrijo esta instalação quebrada de CPAN e Perl?

1

Minha instalação Perl e cpan está quebrada. A versão perl é mostrada abaixo e este comando é executado e executado corretamente.

>perl -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 34 registered patches, see perl -V for more detail)

No entanto, quando tento executar o cpan para instalar um módulo perl, o cpan retorna esse erro,

> cpan
Fcntl object version 1.11 does not match $Fcntl::VERSION 1.13 at /usr/lib64/perl5/DynaLoader.pm line 213.
Compilation failed in require at /usr/share/perl5/CPAN/FTP.pm line 6.
BEGIN failed--compilation aborted at /usr/share/perl5/CPAN/FTP.pm line 6.
Compilation failed in require at /usr/share/perl5/CPAN.pm line 27.
BEGIN failed--compilation aborted at /usr/share/perl5/CPAN.pm line 27.
Compilation failed in require at /usr/share/perl5/App/Cpan.pm line 183.
BEGIN failed--compilation aborted at /usr/share/perl5/App/Cpan.pm line 183.
Compilation failed in require at /usr/bin/cpan line 8.
BEGIN failed--compilation aborted at /usr/bin/cpan line 8.

E quando eu corri a versão do shell do CPAN novamente, recebo o mesmo erro. Parece que a versão Dynaloader.pm tem algum conflito com um anterior instalado

version or something. 

> sudo perl -MCPAN -e shell
    Fcntl object version 1.11 does not match $Fcntl::VERSION 1.13 at /usr/lib64/perl5/DynaLoader.pm line 213.
    Compilation failed in require at /usr/share/perl5/CPAN/FTP.pm line 6.
    BEGIN failed--compilation aborted at /usr/share/perl5/CPAN/FTP.pm line 6.
    Compilation failed in require at /usr/share/perl5/CPAN.pm line 27.
    BEGIN failed--compilation aborted at /usr/share/perl5/CPAN.pm line 27.
    Compilation failed in require.
    BEGIN failed--compilation aborted.


> perl -V
Can't undef active subroutine at /usr/local/lib64/perl5/Config_heavy.pl line 1418.
Compilation failed in require at /usr/lib64/perl5/Config.pm line 79.
  1. Como corrijo o conflito e o erro do dynaload?
  2. Por que o perl -V retorna o erro de falha na compilação?
  3. Esses erros significam que a instalação do perl está quebrada?

Obrigado.

    
por eastafri 04.01.2017 / 06:50

0 respostas

Tags