- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- perl: Can't locate Math/Round.pm
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
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
тАО12-20-2004 12:17 AM
тАО12-20-2004 12:17 AM
# perl -v
This is perl, version 5.005_02 built for PA-RISC1.1
We are migrating from a L2000 HP-UX 11.0 to a rp4440-8 HP-UX 11i v1 (11.11).
There are some perl scripts written by a sysadm who isn't working here any more.
He also installed perl on the old machine's.
Now as we try to migrate one perl script gives the following message:
Can't locate Math/Round.pm in @INC (@INC contains: /opt/perl/lib/5.8.0/PA-RISC1.
1-thread-multi /opt/perl/lib/5.8.0 /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.8.0 /opt/perl/lib/site_perl .) at ./get_bdf_info.pl line 4.
BEGIN failed--compilation aborted at ./get_bdf_info.pl line 4.
In the script on line 4 the following command:
use Math::Round;
We don't have any experions whith perl.
What can we do?
Can we copy "/opt/perl/lib/5.8.0/Math/Round.pm" to the new machine?
Rgrgds CvB.
Solved! Go to Solution.
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 12:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 12:26 AM
тАО12-20-2004 12:26 AM
Re: perl: Can't locate Math/Round.pm
What is the differnets between the "/opt/perl/lib/5.8.0/*" and the "/opt/perl/lib/site_perl/5.8.0/*" directory?
Rgrds CvB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 12:37 AM
тАО12-20-2004 12:37 AM
Re: perl: Can't locate Math/Round.pm
Core-modules vs. Added modules
Perl comes with a large set of core modules (e.g. Math::BigInt), to which you can add your own prefered set of needed modules (e.g. Math::Round and Tk).
There are More locations. e.g. when you have defined $PERL5LIB, that/those location(s) is also searched for modules.
If Math::Round is not version and/or architecture dependant, you can have it in e.g. /home/perl5/lib/Math/Round.pm and set $PERL5LIB to /home/perl5/lib
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 12:44 AM
тАО12-20-2004 12:44 AM
Re: perl: Can't locate Math/Round.pm
As mentioned above - there are core and added modules in different dirs. Anyway the path to given module must be assigned in order to be found and used by the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 12:48 AM
тАО12-20-2004 12:48 AM
Re: perl: Can't locate Math/Round.pm
How and/or where can we find the path to given module?
Is this path per script or global?
Rgrds CvB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 12:49 AM
тАО12-20-2004 12:49 AM
Re: perl: Can't locate Math/Round.pm
After copy of the module the script works.
Thanks.
Rgrds CvB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 01:40 AM
тАО12-20-2004 01:40 AM
Re: perl: Can't locate Math/Round.pm
Rgrds CvB.