[comp.lang.perl] debug invocation problem

crehta@tasu74.UUCP (Ran Ever-Hadani) (12/26/89)

The following occured both on a Sun3 running OS3.5 and on SPARCstation
running OS4.0.3c .

Script started on Tue Dec 26 11:49:53 1989
tasu74 % cat try1
#!/users/c764/crehta/perl

while (<>) {
	print $_;
}
tasu74 % perl -d try1
Undefined subroutine "DB" called at try1 line 3.
tasu74 % ^D
script done on Tue Dec 26 11:50:26 1989

-- Ran
-----------------------------------------------
Reply-To: crehta@taux01.nsc.com (Ran Ever-Hadani)
Disclaimer: The above is to be attributed to me only, not to any organization.
Apology: Bad English.  E-mailed spelling and style corrections are welcome.

lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (12/28/89)

In article <3143@taux01.UUCP> crehta@taux01.nsc.com (Ran Ever-Hadani) writes:
: The following occured both on a Sun3 running OS3.5 and on SPARCstation
: running OS4.0.3c .
: 
: Script started on Tue Dec 26 11:49:53 1989
: tasu74 % cat try1
: #!/users/c764/crehta/perl
: 
: while (<>) {
: 	print $_;
: }
: tasu74 % perl -d try1
: Undefined subroutine "DB" called at try1 line 3.

It would appear that your perl library routine called perldb.pl is not
installed where perl can find it.  Did you ever do a make install?
Did it get any errors?

The place it wants to put them is defined in config.sh by the privlib
variable.  This in turn sets the value of the PRIVLIB symbol to perl, which is
shoved into the @INC array as part of the path to search for perl libraries.

Admittedly, the error message could be better.  >>patch9

Larry

crehta@tasu74.UUCP (Ran Ever-Hadani) (12/28/89)

In article <6680@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes:
#In article <3143@taux01.UUCP> crehta@taux01.nsc.com (Ran Ever-Hadani) writes:
#: Script started on Tue Dec 26 11:49:53 1989
#: tasu74 % perl -d try1
#: Undefined subroutine "DB" called at try1 line 3.
#
#It would appear that your perl library routine called perldb.pl is not
#installed where perl can find it.  Did you ever do a make install?
#Did it get any errors?
#
#The place it wants to put them is defined in config.sh by the privlib
#variable.  This in turn sets the value of the PRIVLIB symbol to perl, which is
#shoved into the @INC array as part of the path to search for perl libraries.

When I ran Configure, I define my lib directory to be "~/lib/perl".
It seems that the ~ was not expanded properly, and I found it
in ~/src/perl3.0/~/lib/perl.

I am going on vacation this evening, and don't have the time
to reconfigure and remake.  A simple mv of ~/src/perl3.0/~/lib/perl/*
into ~/lib/perl did not solve the problem.  So I will try remaking
when I come back.

Thanks for the prompt reply as well as for developping perl.

-- Ran

-----------------------------------------------
Reply-To: crehta@taux01.nsc.com (Ran Ever-Hadani)
Disclaimer: The above is to be attributed to me only, not to any organization.
Apology: Bad English.  E-mailed spelling and style corrections are welcome.