I've got two main gentoo systems, one was once gentoo 1.2 but is now upgraded, the other has always been 1.4. On both, readline support is supposedly built in to CPAN, but it doesn't work. On the first system, CPAN doesn't work: altair src # cpan Cannot do `initialize' in Term::ReadLine::Gnu at /usr/lib/perl5/5.8.2/CPAN.pm line 105 altair src # perl -MCPAN -e shell Cannot do `initialize' in Term::ReadLine::Gnu at /usr/lib/perl5/5.8.2/CPAN.pm line 105 altair src # on the other, CPAN works, but up-arrow, Ctrl+R, Ctrl+P etc do not work. # cpan> ^R^P To get to this stage, once upon a time, I must have installed Bundle::CPAN, as prompted by CPAN itself: cpan shell -- CPAN exploration and modules installation (v1.7601) ReadLine support available (try 'install Bundle::CPAN') Reproducible: Always Steps to Reproduce: 1.run "perl -MCPAN -e shell" or run "cpan" (you may have to configure CPAN if this is your first time) 2.install Bundle::CPAN 3.exit CPAN 4.run CPAN again, as per 1. 5.Ctrl+r, up-arrow, etc do not work. Actual Results: I see ^R or ^P Expected Results: retrieved previous commands. readline works fine in (for example) the mysql tool, or bash.
Some more info that I have just remembered. CPAN worked fine for a while. I can't be definite, but I *think* that the problem occurred when the gentoo perl ebuild went through a revision, for example from 5.6 to 5.8 or similar. I've always had problems with the first machine when the perl version is bumped - generally I have to re-emerge perl modules to get them to work with the latest perl. I've just installed CPAN on a virgin gentoo machine, installed Bundle::CPAN, and readline works. So I guess there is more to this problem than just ebuilds. I can provide whatever info you like to help reslove this issue, or you can close the bug as not reproducible if you like. Sorry to be a pain, thanks for listening (and thanks even more for gentoo!)
closing