- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Perl libraries and @INC
Operating System - OpenVMS
1753876
Members
7529
Online
108809
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО09-29-2004 04:08 AM
тАО09-29-2004 04:08 AM
Perl libraries and @INC
OK, I have Perl 5.6.1 installed on an 11.11 server:
swlist | grep -i perl
perl B.5.6.1.F Perl Programming Language
But it fails a perl -V:
perl -V
Can't locate Config.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 .).
BEGIN failed--compilation aborted.
I do have Config.pm, but @INC is pointed wrong:
/opt/perl/lib/site_perl/5.6.1/PPM/Config.pm
/opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/Tk/Config.pm
/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/Config.pm
perl -help says I can add paths to the @INC entries with perl -Idirectory #
But anytime I do the following:
perl -I/opt/perl/lib/site_perl/5.6.1/PPM
perl -I/opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/Tk
perl -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi
All it does is hang. I even inserted a space between the -I and the paths, still just hangs there. I figure I must be doing a parameter wrong, but after searching the 'Net for examples, the -I option is just listed as -Idirectory with no examples. What am I doing wrong?
swlist | grep -i perl
perl B.5.6.1.F Perl Programming Language
But it fails a perl -V:
perl -V
Can't locate Config.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 .).
BEGIN failed--compilation aborted.
I do have Config.pm, but @INC is pointed wrong:
/opt/perl/lib/site_perl/5.6.1/PPM/Config.pm
/opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/Tk/Config.pm
/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/Config.pm
perl -help says I can add paths to the @INC entries with perl -Idirectory #
But anytime I do the following:
perl -I/opt/perl/lib/site_perl/5.6.1/PPM
perl -I/opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/Tk
perl -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi
All it does is hang. I even inserted a space between the -I and the paths, still just hangs there. I figure I must be doing a parameter wrong, but after searching the 'Net for examples, the -I option is just listed as -Idirectory with no examples. What am I doing wrong?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2004 04:32 AM
тАО09-29-2004 04:32 AM
Re: Perl libraries and @INC
Jimmy,
You've got a couple of problems here. The first one is that this is an OpenVMS forum and you appear to be running Perl on HP-UX (at least that's what I assume 11.11 means).
Another problem is that your @INC appears to be sending Perl off into directories with 5.00502 in their names, i.e., your library paths are set to a much older version of Perl. Those directories may no longer exist or may have incompatible library versions with your newer (though still far from current) 5.6.1 Perl. Check the value of the environment variable PERL5LIB -- that may well be set to something for 5.005_02.
The -I directive only modifies @INC for the current run of Perl. It is not, as you appear to be thinking, something that reconfigures the default values of @INC. The reason it "hangs" is that it is waiting for you to enter a script on standard input since you did not specify one on the command line.
I recommend sending mail to beginners-subscribe AT perl DOT org and you will then be part of a forum much better suited to handling this sort of issue.
You've got a couple of problems here. The first one is that this is an OpenVMS forum and you appear to be running Perl on HP-UX (at least that's what I assume 11.11 means).
Another problem is that your @INC appears to be sending Perl off into directories with 5.00502 in their names, i.e., your library paths are set to a much older version of Perl. Those directories may no longer exist or may have incompatible library versions with your newer (though still far from current) 5.6.1 Perl. Check the value of the environment variable PERL5LIB -- that may well be set to something for 5.005_02.
The -I directive only modifies @INC for the current run of Perl. It is not, as you appear to be thinking, something that reconfigures the default values of @INC. The reason it "hangs" is that it is waiting for you to enter a script on standard input since you did not specify one on the command line.
I recommend sending mail to beginners-subscribe AT perl DOT org and you will then be part of a forum much better suited to handling this sort of issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2004 04:47 AM
тАО09-29-2004 04:47 AM
Re: Perl libraries and @INC
Oops thought I was in the HP forums, sorry!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2004 04:59 AM
тАО09-29-2004 04:59 AM
Re: Perl libraries and @INC
Hello Jimmy,
well you are in the hp forums, but hp is more than hp-ux. Have a look at
http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=150
for the ux crowd.
Nevertheless Craig already pointed out the likely problem.
One more hint, the path you most probably need is /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi
There is more than one Config.pm and they do not all contain the same stuff and are interchangeable;-)
All the best,
Martin
well you are in the hp forums, but hp is more than hp-ux. Have a look at
http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=150
for the ux crowd.
Nevertheless Craig already pointed out the likely problem.
One more hint, the path you most probably need is /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi
There is more than one Config.pm and they do not all contain the same stuff and are interchangeable;-)
All the best,
Martin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP