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!