in reply to Can't find a tree in the forest - CPAN and AddHistory

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.

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

Replies are listed 'Best First'.
Re^2: Can't find a tree in the forest - CPAN and AddHistory
by Wiggins (Hermit) on Apr 02, 2010 at 23:29 UTC
    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.
        OK; So I need some education about what "core" means to Perl.
        I assume 'core' packages are those that are present when the Perl system is initially installed on the OS. Not something that takes an ancillary/subsequent install.
        This system already had Perl and CPAN installed; so that would have done a 2nd install of some of the 'core' packages? And then a subsequent refreshing/upgrading of CPAN will do a 3rd install (if needed)?
        So why is Term::ReadLine a "core" package? What am I missing?

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

      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.
Re^2: Can't find a tree in the forest - CPAN and AddHistory
by Anonymous Monk on Oct 04, 2010 at 09:58 UTC
      Interesting, Term::ReadLine::Perl is fianlly not needed but its dependency - Term::ReadKey is. With that, Term::ReadLine is sufficient.

        sudo cpan -i Term::ReadKey fixed it for me. Thanks everybody!