- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Perl configuration and modules on HP-UX 11i
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
Forums
Discussions
Discussions
Discussions
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
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
11-03-2002 05:25 PM
11-03-2002 05:25 PM
I am just doing some scripting in Perl, and while it works OK, I now have a need to load some CPAN modules and am wondering where the libs are and indeed am wondering is Perl setup correctly !?
Perl (the binary), by default on system install is loaded at /usr/contrib/bin but I can't find any other associated files with it here, or anywhere. The Perl binary is the perl thing loaded, no mans, no docs nothing. Also it is v5.005_02 mind you the older version is not stopping me from doing anything.
I have some CPAN modules I wish to load and use eg. I want to do "use Date::Parse;" in my code. Normally I would just put these modules at .../perl/lib/date or something similar. Should I just create a perl/lib directory and just put it in the path, or some environment variable, or put it at /usr/contrib/lib or what ?
What is the best way to use and configure Perl on HP-UX 11i and what is a recommended version, should I bother updating ? I'm not doing anything special, no CGI, Apache mod-perl or anything like that. Just hacking some shell type scripts to make life easier.
Any advice taken !
All the best.
Rob.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2002 06:40 PM
11-03-2002 06:40 PM
Re: Perl configuration and modules on HP-UX 11i
You want to invest some time downloading a later version.
You can 5.6.1 from here for free in 'swinstall' format.
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=PERL
or an even later version from here:
http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.0/
They will contain some extras other than the single binary.
Here is a useful link as well.
https://www.beepz.com/personal/merijn/
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2002 11:49 PM
11-03-2002 11:49 PM
Re: Perl configuration and modules on HP-UX 11i
If you have HP C-ANSI-C available, consider rebuilding perl (preferably 5.8.0) yourself from the source tree, because it is 25 % faster than gcc builds, and adding modules will proove a breathe (simple)
All public available perl's (as I've seen them around) are build with gcc.
Until not so long ago, HP shipped perl-5.6.1 on the application CD's and these are installed on /opt/perl, the porting center has however recently decided to use /usr/local as installation path. Take care.
My site (the beepz https that Michael mentioned) has ports for a rich featured 32bit perl port build on HP-UX 11.00 with gcc-3.2 prepared for Oracle and it comes with a useful list of precompiled modules, amongst them Date::Manip and Date::Calc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 09:45 PM
11-04-2002 09:45 PM
Re: Perl configuration and modules on HP-UX 11i
As mentioned by Michael, I went to the link he suggested for the v5.6.1 variant as is in depot swinstall format, I thought would be easy. Downloaded the HP-UX 11.0/11i variant for PA-RISC OK into the /var/tmp directory as the instructions sugggest. I renamed/mv'd it to perl_11.11.depot as the downloaded name was an awful thing to type !
Doing a swlist -d @ /tmp/perl_11.11.depot it returns:
"# Initializing...
# Contacting target "robshp"...
#
# Target: robshp:/tmp/perl_11.11.depot
#
#
# Bundle(s):
#
perl B.5.6.1.E Perl Programming Language".
correctly.
However I was not as lucky with the install. Following the instructions provided I then did a:
# swinstall -s /tmp/perl_11.11.depot perl
With the following result:
======= 11/05/02 16:41:03 EDT BEGIN swinstall SESSION
(non-interactive)
* Session started for user "root@robshp".
* Beginning Selection
* Target connection succeeded for "robshp:/".
* "robshp:/tmp/perl_11.11.depot": This source is a tape device.
* "robshp:/tmp/perl_11.11.depot": Cannot open the logfile on
this target or source. Possibly the media is read-only or
there is a permission problem. Check the daemon logfile and
"/var/tmp/swagent.log" on this host for more information.
ERROR: Could not apply the software selection "perl" because it
refers to a bundle or to a product, subproduct or fileset
within a bundle but no compatible bundles meeting the
specification were found.
* Software selection failed for "robshp:/tmp/perl_11.11.depot".
ERROR: No software has been selected.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.
======= 11/05/02 16:41:08 EDT END swinstall SESSION (non-interactive)
As you can see I was logged in as root so shouldn't have had a permissions problem.
The /var/tmp/swagent.log logfile as suggested only shows:
* 11/05/02 16:41:06 EDT BEGIN source AGENT SESSION (pid=1910)
* Agent session started for user "root@robshp". (pid=1910)
* 11/05/02 16:41:08 EDT END source AGENT SESSION (pid=1910)
So I think not much help here...
I am not sure what has gone wrong here, but then I am not a swinstall expert. By the way this is install is on our test HP-UX 11.0 workstation, not the live 11.11 box ultimately this is destined for. But I figure I need to get it working on our test box first so I can test my Perl scripts there as well.
Regards,
Rob.
PS Thanks a heap guys, you are incredibly useful, there is no forum/list better than this, and I am not just sucking...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 09:56 PM
11-04-2002 09:56 PM
SolutionTry one of these:
# swinstall -s /tmp/perl_11.11.depot \*
or
# swinstall -x match_target=true -s /tmp/perl_11.11.depot
or even just 'swinstall' from the command line will start the interactive session. This is menu driven and you can take control over the whole install.
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2002 09:03 PM
11-05-2002 09:03 PM
Re: Perl configuration and modules on HP-UX 11i
I had no luck with any of those swinstall options, basically the same problem. I am not sure if that 5.6 version was the wrong "depot type" if there is such a thing.
Anyway suspecting there was something wrong with it I went to the 5.8.0 version you originally suggested at the UK site. Copied that down, ran the swinstall command line variant, and hey presto, in it went with no dramas ! And I guess I've also got the later version to boot. I renamed the old v4.0 version in /usr/contrib/lib to something else, and put the /usr/local/bin into my path, do a perl -v and I get "This is perl, v5.8.0 built for PA-RISC2.0" so all looks fine. I've also got the man perl pages, perldoc and pod files so everything looks cool; I hope...
Thanks for your help here, I think I've got it !
Regards,
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 12:43 AM
11-06-2002 12:43 AM
Re: Perl configuration and modules on HP-UX 11i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 03:14 AM
11-06-2002 03:14 AM