HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Perl compilation problem
Operating System - HP-UX
1827458
Members
5588
Online
109965
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
Forums
Discussions
Discussions
Discussions
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
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
08-21-2001 02:13 PM
08-21-2001 02:13 PM
Perl compilation problem
Hello Everyone,
I have just installed perl5.6.1 on an hpux 11.0 server. I previously had perl 5.0 installed. When I run one of my previos perl programs, which contains the "use Cwd" line, I get the following error:
Can't locate Cwd.pm in @INC (@INC contains: /opt/perl5/lib/5.6.1/PA-RISC1.1 /opt/perl5/lib/5.6.1 /opt/perl5/lib/site_perl/5.6.1/PA-RISC1.1 /opt/perl5/lib/site_perl/5.6.1 /opt/perl5/lib/site_perl .) at ./system.perl line 7.
BEGIN failed--compilation aborted at ./system.perl line 7.
Program worked fine with the previous version.
Any help in solving this problem is greatly appreciated.
Thanks in advance.
Youlette
I have just installed perl5.6.1 on an hpux 11.0 server. I previously had perl 5.0 installed. When I run one of my previos perl programs, which contains the "use Cwd" line, I get the following error:
Can't locate Cwd.pm in @INC (@INC contains: /opt/perl5/lib/5.6.1/PA-RISC1.1 /opt/perl5/lib/5.6.1 /opt/perl5/lib/site_perl/5.6.1/PA-RISC1.1 /opt/perl5/lib/site_perl/5.6.1 /opt/perl5/lib/site_perl .) at ./system.perl line 7.
BEGIN failed--compilation aborted at ./system.perl line 7.
Program worked fine with the previous version.
Any help in solving this problem is greatly appreciated.
Thanks in advance.
Youlette
If at first you don't succeed, change the rules!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 02:48 PM
08-21-2001 02:48 PM
Re: Perl compilation problem
Hi Youlette,
Looks like you need the Cwd.pm
You can download the module from http://search.cpan.org/search?disk=Cwd
or
http://www.cpan.org/authords/id/L/LI/LIBERTY/Cwd-2.06.tar.gz
Once you download the file gunzip and untar it. Then run
perl Makefile.PL
make
make test
make install
This would install the module on your system.
-HTH
Ramesh
Looks like you need the Cwd.pm
You can download the module from http://search.cpan.org/search?disk=Cwd
or
http://www.cpan.org/authords/id/L/LI/LIBERTY/Cwd-2.06.tar.gz
Once you download the file gunzip and untar it. Then run
perl Makefile.PL
make
make test
make install
This would install the module on your system.
-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2001 06:28 AM
08-23-2001 06:28 AM
Re: Perl compilation problem
Hi Youlette,
though Ramesh's recipe is generally correct something seems to have gone wrong with your installation, because to my knowledge the Cwd module is part of Perl's core distribution.
What happens if you say (as non-root user) "perldoc Cwd"?
Do you get the POD.
If not you should look in Perl's installation path, usually something like
# find /opt/perl5/lib -name Cwd.pm
/opt/perl5/lib/5.6.1/Cwd.pm
Check if your @INC array includes this search path,
# perl -e 'print "@INC\n"'
/opt/perl5/lib/5.6.1/PA-RISC2.0 /opt/perl5/lib/5.6.1 /opt/perl5/lib/site_perl/5.
6.1/PA-RISC2.0 /opt/perl5/lib/site_perl/5.6.1 /opt/perl5/lib/site_perl .
If however find couldn't spot it follow Ramesh's instruction, and install the missing module.
Chances are however that other core modules might be missing in your installation.
though Ramesh's recipe is generally correct something seems to have gone wrong with your installation, because to my knowledge the Cwd module is part of Perl's core distribution.
What happens if you say (as non-root user) "perldoc Cwd"?
Do you get the POD.
If not you should look in Perl's installation path, usually something like
# find /opt/perl5/lib -name Cwd.pm
/opt/perl5/lib/5.6.1/Cwd.pm
Check if your @INC array includes this search path,
# perl -e 'print "@INC\n"'
/opt/perl5/lib/5.6.1/PA-RISC2.0 /opt/perl5/lib/5.6.1 /opt/perl5/lib/site_perl/5.
6.1/PA-RISC2.0 /opt/perl5/lib/site_perl/5.6.1 /opt/perl5/lib/site_perl .
If however find couldn't spot it follow Ramesh's instruction, and install the missing module.
Chances are however that other core modules might be missing in your installation.
Madness, thy name is system administration
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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP