» Sign in
  
Jump to HP Home Jump to Product & Services Jump to Support & Drivers Jump to Solutions Jump to How to buy
» Contact HP
 » Advanced Search
Jump to HP Home

Perl for HP-UX 11i

Developer & Solution Partner Program (DSPP)


A site for HP Partners

 »  DSPP home

Benefits & Services
 »  Marketing & Sales
 »  Technical
 »  Collaboration

Resources & Downloads
 »  Technologies & Tools
 »  HP Products
 »  HP Solutions
 »  Software downloads

 »  Specialized programs

 »  Events
 »  Newsletters

Partner information
 »  Find a partner
 »  Find a partner solution

Shortcuts for
 »  Independent software vendors
 »  Integrators & Consultants

About DSPP
 »  Why join?
 »  Membership benefits

 »  Latest updates

 »  Contact us

 »  Site map

Description

» System requirements
» License and download
» Installation
» Compiler for module builds
» PPM
» Support
» Obsolescence plan
» Oracle DBD modules
» XML modules

As the most popular web programming language (due to its facility with text manipulation and rapid development cycle), Perl is a high-level programming language created and enhanced by the Open Source community. Perl takes the best features from other languages (including C, awk, sed, sh, and BASIC) and at least a dozen other tools and languages. Perl's process, file, and text manipulation facilities make it particularly well-suited for tasks involving quick prototyping, system utilities, software tools, system management tasks, database access, graphical programming, networking, and world wide web programming. These strengths make it especially popular with system administrators and CGI script authors. HP has engineered this high quality Perl with ActiveState so it is optimized for the HP-UX operating system for HP-UX 11.0/11i PA-RISC and HP-UX 11i with Intel® Itanium® processors.

The Perl versions available for download are 5.8.7 and 5.8.8. They are built using HP C/C++ Compilers. 32-bit and 64-bit perl can be installed independently with the default being 32-bit.

A couple of added features in the perl versions currently available are

  • The perl versions are built using libcl.2, to allow building DBI and DBD::Oracle modules without having to set LD_PRELOAD variable to /usr/lib/libcl.2.
  • User-compiled perl modules can now be added to the vendor_perl directory under /opt/perl_32/lib and /opt/perl_64/lib.
If you need to use the SSL functionality, you may have to download and install OpenSSL if it is not already on your system.

Perl is available as an always-installed product on all HP-UX 11i Foundation Operating Environment media.

System requirements

Perl version Package size
5.8.7 (11.00 and 11.11 PA depot) 54087680 bytes
5.8.7 (11.23 IA/PA dual depot) 104560640 bytes
5.8.8 (11.00 PA depot) 55296000 bytes
5.8.8 (11.11 PA depot) 62126080 bytes
5.8.8 (11.23 and 11.31 IA/PA dual depot) 117442560 bytes

License

The "Artistic License"
Preamble

The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications.

Definitions

"Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification.

"Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder as specified below.

"Copyright Holder" is whoever is named in the copyright or copyrights for the package.

"You" is you, if you're thinking about copying or distributing this Package.

"Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the

Copyright Holder, but only to the computing community at large as a market that must bear the fee.)

"Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it.

1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers.

2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version.

3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following:

a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as uunet.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package.

b) use the modified Package only within your corporation or organization.

c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version.

d) make other distribution arrangements with the Copyright Holder.

4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following:

a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version.

b) accompany the distribution with the machine-readable source of the Package with your modifications.

c) give non-standard executables non-standard names, and clearly document the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version.

d) make other distribution arrangements with the Copyright Holder.

5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. You may embed this Package's interpreter within an executable of yours (by linking); this shall be construed as a mere form of aggregation, provided that the complete Standard Version of the interpreter is so embedded.

6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whoever generated them, and may be sold commercially, and may be aggregated with this Package. If such scripts or library files are aggregated with this Package via the so-called "undump" or "unexec" methods of producing a binary executable image, then distribution of such an image shall neither be construed as a distribution of this Package nor shall it fall under the restrictions of Paragraphs 3 and 4, provided that you do not represent such an executable image as a Standard Version of this Package.

7. C subroutines (or comparably compiled subroutines in other languages) supplied by you and linked into this Package in order to emulate subroutines and variables of the language defined by this Package shall not be considered part of this Package, but are the equivalent of input as in Paragraph 6, provided these subroutines do not change the language in any way that would cause it to fail the regression tests for the language.

8. Aggregation of this Package with a commercial distribution is always permitted provided that the use of this Package is embedded; that is, when no overt attempt is made to make this Package's interfaces visible to the end user of the commercial distribution. Such use shall not be construed as a distribution of this Package.

9. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission.

10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

» Download Perl

» Return to top

Installation instructions

  1. Login as root.
  2. After you have downloaded the Perl depot file, move it to the /tmp directory.
  3. Verify that the file has downloaded correctly using swlist.
    Note: swlist and swinstall require you to specify the full path name to the source depot.
    swlist -d @ /tmp/<perl-depot-file>
  4. On a stand-alone system, run swinstall to install the product:
    swinstall -s /tmp/<perl-depot-file> perl
  5. After installing read the release notes located at /opt/perl/html/RELEASE.html.

» Return to top

Support solution for perl

Perl has an open distribution policy; the Open Source community and its many users support Perl through forums and newsgroups. HP offers support service for Perl for customers with a valid HP-UX software contract.

Obsolescence plan for Perl

The support for HP-UX 11.0 ended December 2006. As a result, going forward, perl bits for 11.0 will not be refreshed on the web. The last released perl depots on 11.0 for perl version 5.8.7 and 5.8.8 are D.5.8.7.A and D.5.8.8.A respectively.

Compiler for module builds

In perl v5.8.7, the default compiler used for building is HP C. To change the compiler used, do the following:

  1. Login as root.

  2. Run
        /opt/perl/bin/change_config_pm cc|gcc
    to change the compiler to HP C or gcc.

In perl v5.8.8, the compiler which is available on your system will be used for subsequent module builds. If both HP ANSI C and gcc compilers are available on your system, HP ANSI C compiler will be used. If neither is available, HP's bundled compiler will be used.

PPM

PPM-Perl Package Manager, can be used to locate, install, and upgrade software packages. By default ppm connects to the Perl module repository maintained by ActiveState. A list of Perl packages in this repository is available at http://ppm.activestate.com/PPMPackages/

PPM runs in one of two modes: an interactive shell from which commands can be entered, and command-line mode where one specific action is performed per invocation of the program.

To use PPM, type /opt/perl/bin/ppm to bring up an interactive shell where you can type in your commands. For more details refer to the man pages.

» Return to top

Building Oracle DBD modules

Download the DBI and Oracle::DBD modules from http://www.cpan.org/.

  1. Build DBI
    perl Makefile.PL
    make
    make test
    make install

    Note: Perl v5.8.8 contains DBI module version 1.50.

  2. Build DBD-Oracle
    perl Makefile.PL
    make
    make test
    make install

    If you encounter the following error during make:
    /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: <ORACLE_HOME>/JRE/lib/PA_RISC/native_threads/libjava.sl

    then export LD_PRELOAD environment variable as follows: LD_PRELOAD=<ORACLE_HOME>/JRE/lib/PA_RISC/native_threads/libjava.sl
     

    Use of LD_PRELOAD is similar to the use of libraries at the link line. Just make sure that LD_PRELOAD is used only for the application that needs it. Refer to dld.sl man page for more details. You may need to install the latest linker and dld patches. You can download the latest patches from itrc.hp.com

    For Oracle 9i on HP-UX 11.23, LD_PRELOAD is not needed for building Oracle-DBD.

     

Installing XML-related modules

  • The prerequisite for the XML related modules, libxml2.sl is not available on HP-UX. This has to be installed first.

» Return to top

Installation

  1. Login as root.
  2. After you have downloaded the perl_11.00.depot or perl_11.11.depot or perl_11.22.depot file, move it to the /tmp directory.
  3. Verify the file has downloaded correctly using swlist.
  4. Note: swlist and swinstall require you to specify the full path name to the source depot.

    swlist -d @ /tmp/perl_11.00.depot

  5. On a stand-alone system, run swinstall to install the product swinstall -s /tmp/perl_11.00.depot perl
  6. After installing, read the release notes located at /opt/perl/html/RELEASE.html.







Printable version

Privacy statement Using this site means you accept its terms Trademark acknowledgment Contact us
HP Confidential © 2008 Hewlett-Packard Development Company, L.P.