내 Perl 및 cpan 설치가 손상되었습니다. Perl 버전은 아래에 표시되어 있으며 명령이 제대로 실행되고 실행됩니다.
>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)
그러나 Perl 모듈을 설치하기 위해 cpan을 실행하려고 하면 cpan이 이 오류를 반환합니다.
> 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.
CPAN의 셸 버전을 다시 실행하면 동일한 오류가 발생합니다. Dynaloader.pm 버전이 이전에 설치된 버전과 일부 충돌이 있는 것 같습니다.
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.
- 동적 로딩 충돌 및 오류를 해결하는 방법은 무엇입니까?
- Perl -V가 컴파일 실패 오류를 반환하는 이유는 무엇입니까?
- 이러한 오류는 Perl 설치가 손상되었음을 의미합니까?
감사해요.