No line editing within perl -d on RedHat

  • Thread starter Theo van den Heuvel
  • Start date
T

Theo van den Heuvel

Hi,

Line editing doesn't work when debugging on my
RedHat Linux machine.
For example, I cannot edit/repeat previous commands.
According to the Camel Book, I need to have
Term::ReadKey and Term::ReadLine installed.
I tested both, and they seem to work allright.

Does anybody have an idea what I am missing?

Thanks,

Theo van den Heuvel
 
J

Joe Smith

Theo said:
Line editing doesn't work when debugging on my RedHat Linux machine.
For example, I cannot edit/repeat previous commands.

It works for me.

linux% cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)
linux% perl -d -e 1

Loading DB routines from perl5db.pl version 1.23
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.

"Editor support" = Control-P and up-arrow are functional.
Term::ReadKey and Term::ReadLine installed.
I tested both, and they seem to work allright.

Make sure all the parts are there.

/usr/lib/perl5/5.8.3/perl5db.pl
/usr/lib/perl5/5.8.3/i586-linux/IO/Handle.pm
/usr/lib/perl5/5.8.3/strict.pm
/usr/lib/perl5/5.8.3/Carp.pm
/usr/lib/perl5/5.8.3/Exporter.pm
/usr/lib/perl5/5.8.3/Symbol.pm
/usr/lib/perl5/5.8.3/SelectSaver.pm
/usr/lib/perl5/5.8.3/i586-linux/IO.pm
/usr/lib/perl5/5.8.3/i586-linux/XSLoader.pm
/usr/lib/perl5/5.8.3/warnings.pm
/usr/lib/perl5/5.8.3/i586-linux/auto/IO/IO.so
/usr/lib/perl5/5.8.3/Term/ReadLine.pm
/usr/lib/perl5/5.8.3/Carp/Heavy.pm
/usr/lib/perl5/site_perl/5.8.3/Term/ReadLine/Perl.pm
/usr/lib/perl5/site_perl/5.8.3/Term/ReadLine/readline.pm
/usr/lib/perl5/5.8.3/SelfLoader.pm
/usr/lib/perl5/site_perl/5.8.3/i586-linux/Term/ReadKey.pm
/usr/lib/perl5/5.8.3/AutoLoader.pm
/usr/lib/perl5/5.8.3/i586-linux/DynaLoader.pm
/usr/lib/perl5/5.8.3/vars.pm
/usr/lib/perl5/5.8.3/warnings/register.pm
/usr/lib/perl5/5.8.3/i586-linux/Config.pm
/usr/lib/perl5/site_perl/5.8.3/i586-linux/auto/Term/ReadKey/ReadKey.so
/usr/lib/perl5/5.8.3/Term/Cap.pm
/etc/termcap

-Joe
 
T

Theo van den Heuvel

Joe Smith said:
Theo said:
Line editing doesn't work when debugging on my RedHat Linux machine.
For example, I cannot edit/repeat previous commands.

It works for me.
[...]


Make sure all the parts are there.
[clipped listing of relevant modules]

Thanks Joe,

I noticed some differences (apart from version stuff)
that lead me to reinstall Readline and Term-ReadLine-Perl.
That took care of it. It works.

Thanks,

Theo van den Heuvel
 
T

Theo van den Heuvel

Joe Smith said:
Theo said:
Line editing doesn't work when debugging on my RedHat Linux machine.
For example, I cannot edit/repeat previous commands.

It works for me.
[...]


Make sure all the parts are there.
[clipped listing of relevant modules]

Thanks Joe,

I noticed some differences (apart from version stuff)
that lead me to reinstall Readline and Term-ReadLine-Perl.
That took care of it. It works.

Thanks,

Theo van den Heuvel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top