Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Missing Term/ and PerlIO from Ubuntu 20.10?

by szabgab (Priest)
on Feb 16, 2021 at 12:47 UTC ( #11128439=perlquestion: print w/replies, xml ) Need Help??

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/ in @INC
(but curl gets installed anyway)

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

Can't locate in @INC

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

Details are here

  • Comment on Missing Term/ and PerlIO from Ubuntu 20.10?

Replies are listed 'Best First'.
Re: Missing Term/ 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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11128439]
Approved by salva
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-08-08 23:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found