1753360 Members
4705 Online
108792 Solutions
New Discussion юеВ

Re: Perl 5.6.1 problem

 
SOLVED
Go to solution
Jeffrey M. Nolle
Occasional Advisor

Perl 5.6.1 problem

Hi,

I was attempting to write a perl script and received the following error when I attempt to execute it:

Can't locate strict.pm in @INC
(@INC contains:
/opt/perl5/lib/5.00502/PA-RISC1.1
/opt/perl5/lib/5.00502
/opt/perl5/lib/site_perl/5.005/PA-RISC1.1
/opt/perl5/lib/site_perl/5.005 .) at /scripts/pass.pl line 3.
BEGIN failed--compilation aborted at /scripts/pass.pl line 3.

I swremoved the product (B.5.6.1.C installed from the oe CD's) and replaced it with a depot downloaded from the itrc, but I get the exact same message. The libraries are on the system at /opt/perl/lib/5.6.1. I believe that I can set the PERL5LIB variable and make it work, but I would like to have this working properly.

Thanks for your time

4 REPLIES 4
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Perl 5.6.1 problem

Show us the first ten lines of your script.

Did you by accident use

require strict;

instead of

use strict;

?

Does it find an older perl in ypur path before the 5.6.1 version?

# perl -v

should tell you 5.6.1

# find / -name perl

should find all perls executables (don't do this on NFS or AFS systems!)
Enjoy, Have FUN! H.Merijn
Wodisch_1
Honored Contributor

Re: Perl 5.6.1 problem

Hi,

assuming that you have "swinstalled" all versions of "perl" you ever had, then try this:

swlist -l file | grep "/opt/perl5/lib/5.00502"

That should show you the name of the bundle/product/subproduct etc. of the older version.

Which then could be "swremoved"...

HTH,
Wodisch
Jeffrey M. Nolle
Occasional Advisor

Re: Perl 5.6.1 problem

Got it. Apparently the connection between my eyes and my brain isn't working very well, there was an earlier version of perl in the path. Thanks to procura for putting me on the right 'path'.
MANOJ SRIVASTAVA
Honored Contributor

Re: Perl 5.6.1 problem

Great Catch

I was stuck once and which perl did the job , I was using perl which was in /usr/contrib/bin/perl where was i was to use /opt/perl5....


Manoj Srivastava