http://qs321.pair.com?node_id=11128439

szabgab has asked for the wisdom of the Perl Monks concerning the following question:

Deep in the rabbit hole of trying to test something I was trying to see how to install Term-ReadLine-Gnu in various environments. This is on an Ubuntu image:

It says we have perl 5.30.3.

When I apt-get install curl it complains about:

debconf: (Can't locate Term/ReadLine.pm in @INC
(but curl gets installed anyway)

Then I try to install cpanm from its web site and I get:

Can't locate PerlIO.pm in @INC

Any idea what mess did I get myself into and how to get out of this?

Details are here

Replies are listed 'Best First'.
Re: Missing Term/ReadLine.pm and PerlIO from Ubuntu 20.10?
by Corion (Patriarch) on Feb 16, 2021 at 12:56 UTC

    Most likely, the Perl on that machine is horribly broken. A part of this could be that certain vendors only install a stripped-down Perl distribution and name that package "perl-base". You want to install the package for the full Perl, that is named perl.

    Hopefully this will remedy the error message of debconf that Term::ReadLine is not installed, but ideally, the debconf package should know about Term::Readline if it needs it at all.

    Another idea might be that somehow your private changes to @INC bleed over into the system configuration, and will cause no end of sadness.

    First, make sure that you have a full Perl, by using apt install perl.

      Installing the package "perl" was an excellent advice. It solved these problems. Thank you!

      I even managed to install Term-ReadLine-Gnu on Ubuntu.

      Now I am trying to do it on CentOS.