Search code examples
perlcpan

Cannot install from CPAN (Perl)


I am trying to install perlcc module using cpan:

cpan[1]> install perlcc
Reading '/home/iuser/.local/share/.cpan/Metadata'
  Database was generated on Fri, 08 Sep 2017 12:41:02 GMT
Warning: Cannot install perlcc, don't know what it is.
Try the command

    i /perlcc/

to find objects with matching identifiers.

cpan[2]> i /perlcc/
No objects found of any type for argument /perlcc/

cpan[3]> 

Why is this module not getting installed even when search page is showing it to be there? How can this problem be solved?


Solution

  • perlcc is not a module. It is a command line executable.

    Look at the page you link to:

    image

    … it is part of Perl itself.

    Searching for perlcc using Google turned up this page which says:

    perlcc has been removed from Perl effective Perl 5.10. It and the underlying modules have always been out of date, broken and unmaintained.

    So you could install an old version of Perl (perlbrew might help there) to get access to it.

    That page also says:

    Reini Urban has since fixed it and has been maintaining it as part of B::C

    So you could look at installing that instead.