-->
  • Recent Articles

    Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5

    Error:

    While Accessing Perl Shell we hit with following error:
    [root@example log]# perl -MCPAN -e shell
    Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
    BEGIN failed--compilation aborted.

    Resolution:

    1. Install "perl-CPAN" tool.

     yum install perl-CPAN
    Resolving Dependencies
    --> Running transaction check
    ---> Package perl-CPAN.noarch 0:1.9800-286.el7 will be installed
    --> Processing Dependency: perl(Digest::SHA) for package: perl-CPAN-1.9800-286.el7.noarch
    --> Processing Dependency: perl(local::lib) for package: perl-CPAN-1.9800-286.el7.noarch
    --> Running transaction check
    ---> Package perl-Digest-SHA.x86_64 1:5.85-3.el7 will be installed
    ---> Package perl-local-lib.noarch 0:1.008010-3.el7 will be installed
    --> Finished Dependency Resolution

    No comments