Operating System - HP-UX
1827207 Members
2358 Online
109716 Solutions
New Discussion

perl error - can't locate locale.pm

 
SOLVED
Go to solution
MikeL_4
Super Advisor

perl error - can't locate locale.pm

One of our developers is running a perl program and is receiving error message:

Can't locate locale.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 /opt/oracle/dba/common/bin/filedate.pl line 3.

He says this same perl program runs on another server, and between the two the only difference I see is the version on the server that it runs on is: D.5.8.0.B and the one that is getting the error is: B.5.6.1.F

6 REPLIES 6
H.Merijn Brand (procura
Honored Contributor

Re: perl error - can't locate locale.pm

5.8.0 has locale and utf8 support that 5.6.1 lacks.

Both versions are old. For the 5.6 range, 5.6.2 is the stable release and 5.8.6 is being released this week.

The error message you post is from an even older perl: 5.005_02 which doesn't (correctly) support locales and unicode at all.

So you should have suspicion for the installed perl being correct. If IT tells you it's 5.6.1, they're wrong.

# perl -v

will show you the version

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
MikeL_4
Super Advisor

Re: perl error - can't locate locale.pm

The server version with the error is:
This is perl, version 5.005_02 built for PA-RISC1.1

The server version where it is running correctly is:
This is perl, v5.8.5 built for 9000/800-hpux

Is the error I am receiving due to the Version ?? or is there something else I need to do ?
Fred Ruffet
Honored Contributor
Solution

Re: perl error - can't locate locale.pm

About the difference of versions : 5.00502 and 5.6.1.
This may occur if programmer is using /usr/contrib/bin/perl (which is perl shipped with HP to run OS scripts) instead of /opt/perl/bin/perl (which may correspond to installation of 5.6.1.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
H.Merijn Brand (procura
Honored Contributor

Re: perl error - can't locate locale.pm

If possible, upgrade the old 5.005_02 to a more recent version in the 5.8 range and the locale error should be gone.

the 5.005_02 version is a hppa-risc-1.1 port. You didn't tell me the server types, but if the server that perl is running on is a D370 or newer with HP-UX 11.00 or up, you should consider a 2.0 port. If that system has a (old) PA7xxx processor, you cannot install a 2.0 architecture build.

I have all kinds of perl versions available for HP-UX ranging from perl-5.8.0 for 10.20 (pa-risc-1.1) to perl-5.8.5-dor/64 for 11i/64 on my site

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: perl error - can't locate locale.pm

Fred, *I* have never seen a /usr/contrib/bin/perl newer than 4.036 :)
Certainly not on pa-risc-1.1 systems

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
MikeL_4
Super Advisor

Re: perl error - can't locate locale.pm

Thanks, we will upgrade to newer perl version when we get our next maintenance window. Running perl out of: /opt/perl/bin/perl worked to resolve the issue, where he was running out of: /usr/contrib