$ cpan
Terminal does not support AddHistory.
To fix that, maybe try> install Term::ReadLine::Perl
cpan shell -- CPAN exploration and modules installation (v2.28)
Enter 'h' for help.
cpan[1]>
####
$ tar zxvf TermReadKey-2.38.tar.gz
$ cd TermReadKey-2.38
$ perl Makefile.PL
$ make
$ make test
$ make install
##
##
$ tar zxvf Term-ReadLine-Gnu-1.37.tar.gz
$ cd Term-ReadLine-Gnu-1.37
$ perl Makefile.PL
$ make
$ make test
$ make install
##
##
$ cpan
cpan shell -- CPAN exploration and modules installation (v2.28)
Enter 'h' for help.
cpan[1]>