CPAN: Terminal does not support GetHistory / AddHistory in Ubuntu

Using CPAN in Ubuntu Lucid Lynx (10.04), the command line history was broken and the up/down keys only triggered escape codes such as ^[[A. Additionally, the following error messages showed up on CPAN startup (only one of them at a time):

Terminal does not support GetHistory
Terminal does not support AddHistory

Term::ReadLine was correctly installed, but when I tried to install Bundle::CPAN, I got failed tests for Term::ReadLine::Perl. So I did:

look Term::ReadLine::Perl

to inspect the build folder, tried the test which actually seems to work. Installing the module from the shell with:

make install

was sucessful, and after restarting CPAN I had my terminal working properly. Anyway, it seems Term::ReadLine still isn't functionning perfectly:

perl -MTerm::ReadLine::Perl
Can't locate object method "Features" via package "Term::ReadLine::Stub" at /opt/perl-5.12.1/lib/site_perl/5.12.1/Term/ReadLine/ line 101.
Compilation failed in require.
BEGIN failed--compilation aborted.

Xavier Robin
Publié le samedi 28 août 2010 à 17:10 CEST
Lien permanent : /blog/2010/08/28/cpan-terminal-does-not-support-gethistory-addhistory-in-ubuntu
Tags : Programmation
Commentaires : 4


Par Liz le vendredi 11 mars 2011 à 18:12 CET

I am having the same issue.

Par Bata ILIC le lundi 30 mai 2011 à 13:39 CEST

cpan Term::ReadLine::Gnu should fix this

Par richard le dimanche 14 août 2011 à 10:58 CEST

in ubuntu 10.10, i did:

sudo apt-get install libterm-readline-gnu-perl

then it's OK

Par Rudolf Meyer le jeudi 4 octobre 2012 à 10:27 CEST

Installing libterm-readline-gnu-perl soved the problem. History now just works fine in CPAN.

Nouveau commentaire

* L'astérisque dénote un champ obligatoire.

En soumettant votre message, vous acceptez qu' il soit publié sous licence CC BY-SA 3.0.

Quelques balises HTML sont autorisées : a[href, hreflang, title], br, em, i, strong, b, tt, samp, kbd, var, abbr[title], acronym[title], code, q[cite], sub, sup.

Switch to English



Bruit de fond Hobbys Humour Informatique Internet Livres Logiciels Moi Mon site web Mozilla Photo Politique Programmation Scolaire Ubuntu pROC

Billets récents