Operating System - HP-UX
1748180 Members
4361 Online
108759 Solutions
New Discussion юеВ

Re: can't locate perldb.pl

 
Mark Greene_1
Honored Contributor

can't locate perldb.pl

anyone see this message before? Got this trying to run a perl script with the -d (debug)on line 1.

I did an swverify perl, and if successfully verified.

--
mark
the future will be a lot like now, only later
3 REPLIES 3
Mark Fenton
Esteemed Contributor

Re: can't locate perldb.pl

Haven't seen that one, but does that file exist on your system? took a brief spin on mine, and

# find / -name perldb.pl -print
#

no such beastie on a normally functioning perl installation.

just a thought.
Steven Gillard_2
Honored Contributor

Re: can't locate perldb.pl

The perl interpreter installed with HPUX doesn't come with the debug module. Install perl5 from http://hpux.connect.org.uk/ and it will work:

$ /opt/perl5/bin/perl -d test.pl
Default die handler restored.

Loading DB routines from perl5db.pl version 1.07
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(test.pl:3): print "hello world\n";
DB<1>

Regards,
Steve
Mark Greene_1
Honored Contributor

Re: can't locate perldb.pl

Thanks, to those who responded; I found the problem. Doing a "whereis" on perl returns /usr/contrib/bin/perl as the first entry, and that's what was being used in the script. Changing the first line to /opt/perl/bin/perl took care of the problem.

Also interesting to note was the versions:

# /opt/perl/bin/perl -v

This is perl, v5.6.1 built for PA-RISC1.1-thread-multi
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2001, Larry Wall

Binary build 627 provided by ActiveState Tool Corp. http://www.ActiveState.com
Built 21:42:53 Jun 20 2001


Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

# /usr/contrib/bin/perl -v

This is perl, version 4.0

$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $
Patch level: 36

Copyright (c) 1989, 1990, 1991, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 4.0 source kit.
#


This is on a new L2000 with factory installed 11.00 with the December 2001 patch kit. swlist shows this perl install:
perl B.5.6.1.C Perl Programming Language

--
mark
the future will be a lot like now, only later