perlhpux.html

来自「perl教程」· HTML 代码 · 共 601 行 · 第 1/3 页

HTML
601
字号
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../scineplex.css">
<title>README.hpux - Perl version 5 on Hewlett-Packard Unix systems</title>
<link rel="stylesheet" href="../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>

<body>

<script>writelinks('__top__',2);</script>
<h1><a>README.hpux - Perl version 5 on Hewlett-Packard Unix systems</a></h1>
<p><a name="__index__"></a></p>

<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<ul>

		<li><a href="#using_perl_as_shipped_with_hpux">Using perl as shipped with HP-UX</a></li>
		<li><a href="#using_perl_from_hp_s_porting_centre">Using perl from HP's porting centre</a></li>
		<li><a href="#compiling_perl_5_on_hpux">Compiling Perl 5 on HP-UX</a></li>
		<li><a href="#parisc">PA-RISC</a></li>
		<li><a href="#portability_between_parisc_versions">Portability Between PA-RISC Versions</a></li>
		<li><a href="#parisc_1_0">PA-RISC 1.0</a></li>
		<li><a href="#parisc_1_1">PA-RISC 1.1</a></li>
		<li><a href="#parisc_2_0">PA-RISC 2.0</a></li>
		<li><a href="#itanium_processor_family_and_hpux">Itanium Processor Family and HP-UX</a></li>
		<li><a href="#itanium___itanium_2">Itanium &amp; Itanium 2</a></li>
		<li><a href="#building_dynamic_extensions_on_hpux">Building Dynamic Extensions on HP-UX</a></li>
		<li><a href="#the_hp_ansi_c_compiler">The HP ANSI C Compiler</a></li>
		<li><a href="#the_gnu_c_compiler">The GNU C Compiler</a></li>
		<li><a href="#using_large_files_with_perl_on_hpux">Using Large Files with Perl on HP-UX</a></li>
		<li><a href="#threaded_perl_on_hpux">Threaded Perl on HP-UX</a></li>
		<li><a href="#64bit_perl_on_hpux">64-bit Perl on HP-UX</a></li>
		<li><a href="#oracle_on_hpux">Oracle on HP-UX</a></li>
		<li><a href="#gdbm_and_threads_on_hpux">GDBM and Threads on HP-UX</a></li>
		<li><a href="#nfs_filesystems_and_utime_2__on_hpux">NFS filesystems and <a href="../../lib/Pod/perlfunc.html#item_utime"><code>utime(2)</code></a> on HP-UX</a></li>
		<li><a href="#perl_p_and____and_hpux">perl -P and // and HP-UX</a></li>
		<li><a href="#hpux_kernel_parameters__maxdsiz__for_compiling_perl">HP-UX Kernel Parameters (maxdsiz) for Compiling Perl</a></li>
	</ul>

	<li><a href="#nss_delete_core_dump_from_op_pwent_or_op_grent">nss_delete core dump from op/pwent or op/grent</a></li>
	<li><a href="#author">AUTHOR</a></li>
	<li><a href="#date">DATE</a></li>
</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>README.hpux - Perl version 5 on Hewlett-Packard Unix (HP-UX) systems</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>This document describes various features of HP's Unix operating system
(HP-UX) that will affect how Perl version 5 (hereafter just Perl) is
compiled and/or runs.</p>
<p>
</p>
<h2><a name="using_perl_as_shipped_with_hpux">Using perl as shipped with HP-UX</a></h2>
<p>Application release September 2001, HP-UX 11.00 is the first to ship
with Perl. By the time it was perl-5.6.1 in /opt/perl. The first
occurrence is on CD 5012-7954 and can be installed using</p>
<pre>
  swinstall -s /cdrom perl</pre>
<p>assuming you have mounted that CD on /cdrom. In this version the
following modules were installed:</p>
<pre>
  ActivePerl::DocTools-0.04   HTML::Parser-3.19   XML::DOM-1.25
  Archive::Tar-0.072          HTML::Tagset-3.03   XML::Parser-2.27
  Compress::Zlib-1.08         MIME::Base64-2.11   XML::Simple-1.05
  Convert::ASN1-0.10          Net-1.07            XML::XPath-1.09
  Digest::MD5-2.11            PPM-2.1.5           XML::XSLT-0.32
  File::CounterFile-0.12      SOAP::Lite-0.46     libwww-perl-5.51
  Font::AFM-1.18              Storable-1.011      libxml-perl-0.07
  HTML-Tree-3.11              URI-1.11            perl-ldap-0.23</pre>
<p>The build was a portable hppa-1.1 multithread build that supports large
files compiled with gcc-2.9-hppa-991112</p>
<p>If you perform a new installation, then Perl will be installed
automatically.</p>
<p>More recent (preinstalled) HP-UX systems have more recent versions of
Perl and the updated modules.</p>
<p>
</p>
<h2><a name="using_perl_from_hp_s_porting_centre">Using perl from HP's porting centre</a></h2>
<p>HP porting centre tries very hard to keep up with customer demand and
release updates from the Open Source community. Having precompiled
Perl binaries available is obvious.</p>
<p>The HP porting centres are limited in what systems they are allowed
to port to and they usually choose the two most recent OS versions
available. This means that at the moment of writing, there are only
HP-UX 11.11 (pa-risc 2.0) and HP-UX 11.23 (Itanium 2) ports available
on the porting centres.</p>
<p>HP has asked the porting centre to move Open Source binaries
from /opt to /usr/local, so binaries produced since the start
of July 2002 are located in /usr/local.</p>
<p>One of HP porting centres URL's is <a href="http://hpux.connect.org.uk/">http://hpux.connect.org.uk/</a>
The port currently available is built with GNU gcc.</p>
<p>
</p>
<h2><a name="compiling_perl_5_on_hpux">Compiling Perl 5 on HP-UX</a></h2>
<p>When compiling Perl, you must use an ANSI C compiler.  The C compiler
that ships with all HP-UX systems is a K&amp;R compiler that should only be
used to build new kernels.</p>
<p>Perl can be compiled with either HP's ANSI C compiler or with gcc.  The
former is recommended, as not only can it compile Perl with no
difficulty, but also can take advantage of features listed later that
require the use of HP compiler-specific command-line flags.</p>
<p>If you decide to use gcc, make sure your installation is recent and
complete, and be sure to read the Perl INSTALL file for more gcc-specific
details.</p>
<p>
</p>
<h2><a name="parisc">PA-RISC</a></h2>
<p>HP's current Unix systems run on its own Precision Architecture
(PA-RISC) chip.  HP-UX used to run on the Motorola MC68000 family of
chips, but any machine with this chip in it is quite obsolete and this
document will not attempt to address issues for compiling Perl on the
Motorola chipset.</p>
<p>The most recent version of PA-RISC at the time of this document's last
update is 2.0. HP PA-RISC systems are usually refered to with model
description &quot;HP 9000&quot;.</p>
<p>A complete list of models at the time the OS was built is in the file
/usr/sam/lib/mo/sched.models. The first column corresponds to the last
part of the output of the &quot;model&quot; command.  The second column is the
PA-RISC version and the third column is the exact chip type used.
(Start browsing at the bottom to prevent confusion ;-)</p>
<pre>
  # model
  9000/800/L1000-44
  # grep L1000-44 /usr/sam/lib/mo/sched.models
  L1000-44        2.0     PA8500</pre>
<p>
</p>
<h2><a name="portability_between_parisc_versions">Portability Between PA-RISC Versions</a></h2>
<p>An executable compiled on a PA-RISC 2.0 platform will not execute on a
PA-RISC 1.1 platform, even if they are running the same version of
HP-UX.  If you are building Perl on a PA-RISC 2.0 platform and want that
Perl to also run on a PA-RISC 1.1, the compiler flags +DAportable and
+DS32 should be used.</p>
<p>It is no longer possible to compile PA-RISC 1.0 executables on either
the PA-RISC 1.1 or 2.0 platforms.  The command-line flags are accepted,
but the resulting executable will not run when transferred to a PA-RISC
1.0 system.</p>
<p>
</p>
<h2><a name="parisc_1_0">PA-RISC 1.0</a></h2>
<p>The original version of PA-RISC, HP no longer sells any system with this chip.</p>
<p>The following systems contained PA-RISC 1.0 chips:</p>
<pre>
  600, 635, 645, 808, 815, 822, 825, 832, 834, 835, 840, 842, 845, 850,
  852, 855, 860, 865, 870, 890</pre>
<p>
</p>
<h2><a name="parisc_1_1">PA-RISC 1.1</a></h2>
<p>An upgrade to the PA-RISC design, it shipped for many years in many different
system.</p>
<p>The following systems contain with PA-RISC 1.1 chips:</p>
<pre>
  705, 710, 712, 715, 720, 722, 725, 728, 730, 735, 742, 743, 744, 745,
  747, 750, 755, 770, 777, 778, 779, 800, 801, 803, 806, 807, 809, 811,
  813, 816, 817, 819, 821, 826, 827, 829, 831, 837, 839, 841, 847, 849,
  851, 856, 857, 859, 867, 869, 877, 887, 891, 892, 897, A180, A180C,
  B115, B120, B132L, B132L+, B160L, B180L, C100, C110, C115, C120,
  C160L, D200, D210, D220, D230, D250, D260, D310, D320, D330, D350,
  D360, D410, DX0, DX5, DXO, E25, E35, E45, E55, F10, F20, F30, G30,
  G40, G50, G60, G70, H20, H30, H40, H50, H60, H70, I30, I40, I50, I60,
  I70, J200, J210, J210XC, K100, K200, K210, K220, K230, K400, K410,
  K420, S700i, S715, S744, S760, T500, T520</pre>
<p>
</p>
<h2><a name="parisc_2_0">PA-RISC 2.0</a></h2>
<p>The most recent upgrade to the PA-RISC design, it added support for
64-bit integer data.</p>
<p>As of the date of this document's last update, the following systems
contain PA-RISC 2.0 chips:</p>
<pre>
  700, 780, 781, 782, 783, 785, 802, 804, 810, 820, 861, 871, 879, 889,
  893, 895, 896, 898, 899, A400, A500, B1000, B2000, C130, C140, C160,
  C180, C180+, C180-XP, C200+, C400+, C3000, C360, C3600, CB260, D270,
  D280, D370, D380, D390, D650, J220, J2240, J280, J282, J400, J410,
  J5000, J5500XM, J5600, J7000, J7600, K250, K260, K260-EG, K270, K360,
  K370, K380, K450, K460, K460-EG, K460-XP, K470, K570, K580, L1000,
  L2000, L3000, N4000, R380, R390, SD16000, SD32000, SD64000, T540,
  T600, V2000, V2200, V2250, V2500, V2600</pre>
<p>Just before HP took over Compaq, some systems were renamed. the link
that contained the explanation is dead, so here's a short summary:</p>
<pre>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?