in reply to cpan: Terminal does not support AddHistory.

Ahoy 3 years later!

To get this to work I also had to install the libreadline package, which on ubuntu is

sudo apt install libreadline6 libreadline6-dev
I think you might be able to just install libreadline-dev, but I did it the above way and it worked. Then I had to run
cpan install Log::Log4perl
Now I can use up and down to scroll through history, but I also get this message.
Starting with version 2.29 of the cpan shell, a new download mechanism is the default which exclusively uses cpan.org as the host to download from. The configuration variable pushy_https can be used to (de)select the new mechanism. Please read more about it and make your choice between the old and the new mechanism by running o conf init pushy_https Once you have done that and stored the config variable this dialog will disappear.
So basically 0 means use the urllist, and 1 or undef means only ever use CPAN and ignore the urllist. Apparently this was in response to a spoofing attack a couple years ago but could cause problems if you try to use a mirror or something like that. There is a question and response about it on stack overlow. https://stackoverflow.com/questions/75523351/cpan-not-using-configured-repo-instead-trying-to-connect-to-cpan-org-when-instal So I ran
o conf pushy_https 0 o conf commit
So after that I finally get
cpan shell -- CPAN exploration and modules installation (v2.36) Enter 'h' for help.
And I can scroll through my log and no more errors or warnings on startup. Thanks for the heads up man. I stumbled on this trying to install Gtk2 and Gnome2::Canvas which also dont work unless you install them manually from source. Thanks and Good Luck!

Replies are listed 'Best First'.
Re^2: cpan: Terminal does not support AddHistory.
by kcott (Archbishop) on Apr 06, 2025 at 01:23 UTC

    G'day AM,

    No worries about "3 years later" -- for various personal reasons, this is the first time I've logged in for over six months.

    In my original post, I had requested others to report their findings on other systems. Your feedback re Ubuntu is very much appreciated; it's also prompted to me to add a new note about openSUSE (which I've been setting up for $work recently).

    You may find the following CVEs of interest: CVE-2020-16156 and CVE-2023-31484.

    Here's my current cpan shell setup (locally on Cygwin with Perl v5.40.0) for the configuration items you discussed:

    $ perl -v | head -2 | tail -1 This is perl 5, version 40, subversion 0 (v5.40.0) built for cygwin-th +read-multi ken@titan ~/tmp $ cpan cpan shell -- CPAN exploration and modules installation (v2.36) Enter 'h' for help. cpan[1]> o conf pushy_https pushy_https [0] Type 'o conf' to view all configuration items cpan[2]> o conf urllist urllist 0 [https://www.cpan.org/] 1 [https://cpan.metacpan.org/] Type 'o conf' to view all configuration items cpan[3]> q Lockfile removed. ken@titan ~/tmp

    Update: Added perl -v ... command.

    — Ken