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

"Terminal does not support AddHistory."

The first line in every CPAN session I have ever run, to the best of my recollection. And I want some history. So I search Google, and PerlMonks to see how to fix this .

perl fix "Terminal does not support AddHistory."

And I find many (1000's) of occurrences, and the all are part of problem documentation for a module loading problem. But not a fix for this condition.

- terminal is Xterm - what is the fix to "AddHistory"?

It is always better to have seen your target for yourself, rather than depend upon someone else's description.

  • Comment on Can't find a tree in the forest - CPAN and AddHistory

Replies are listed 'Best First'.
Re: Can't find a tree in the forest - CPAN and AddHistory
by Corion (Patriarch) on Apr 02, 2010 at 23:03 UTC

    I think that's less a question of your terminal and more a question of having the proper Term::ReadLine module installed. Likely you have none installed currently.

      cpan[1]> install Term::ReadLine The most recent version "1.04" of the module "Term::ReadLine" is part of the perl-5.10.1 distribution. To install that, you need to +run force install Term::ReadLine --or-- install D/DA/DAPM/perl-5.10.1.tar.gz Running make test Can't test without successful make ... root@vbp35:/home/user# perl -V |head -3 Summary of my perl5 (revision 5 version 10 subversion 0) configuration +: Platform: ...
      I have not looked enough at what is changed in 5.10.1 to upgade to that yet; and I won't 'force' an install of something that might start some prereq war. So I live without history... I guess it wasn't core in 5.10.0, or at least the "right version".

      It is always better to have seen your target for yourself, rather than depend upon someone else's description.

        Term::ReadLine has been core since 5.002. You can run corelist -a Term::ReadLine for a complete list of all the versions that it has been in. Try running cpan Bundle::CPAN. That should do it for you.
        The line is complaining that you either A) do not have 'make' or B) compiling is not working on your machine at all or C) it tried to compile but failed or D) compiling worked but you may have to be 'root' to install D) is not what you have from the complaint but it often happens Sometimes you need the gcc compiler and the system include files (headers) to be successful in this attempt. Another thing is that different people on your system may have different versions of perl available to them compiling for one does not mean you have compiled for the other. So you might have it working but they may not.
        Interesting, Term::ReadLine::Perl is fianlly not needed but its dependency - Term::ReadKey is. With that, Term::ReadLine is sufficient.