- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Perl 5.6.1 problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2002 09:17 AM
тАО07-23-2002 09:17 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2002 11:19 AM
тАО07-23-2002 11:19 AM
SolutionDid 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!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2002 11:43 AM
тАО07-23-2002 11:43 AM
Re: Perl 5.6.1 problem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2002 12:45 PM
тАО07-23-2002 12:45 PM
Re: Perl 5.6.1 problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2002 12:51 PM
тАО07-23-2002 12:51 PM
Re: Perl 5.6.1 problem
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