perlvos.html

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

HTML
386 行
字号
<?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.vos - Perl for Stratus VOS</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.vos - Perl for Stratus VOS</a></h1>
<p><a name="__index__"></a></p>

<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<ul>

		<li><a href="#multiple_methods_to_build_perl_for_vos">Multiple methods to build perl for VOS</a></li>
		<li><a href="#stratus_posix_support">Stratus POSIX Support</a></li>
	</ul>

	<li><a href="#installing_perl_in_vos">INSTALLING PERL IN VOS</a></li>
	<ul>

		<li><a href="#compiling_perl_5_on_vos">Compiling Perl 5 on VOS</a></li>
		<li><a href="#installing_perl_5_on_vos">Installing Perl 5 on VOS</a></li>
	</ul>

	<li><a href="#using_perl_in_vos">USING PERL IN VOS</a></li>
	<ul>

		<li><a href="#unimplemented_features_of_perl_on_vos">Unimplemented Features of Perl on VOS</a></li>
		<li><a href="#restrictions_of_perl_on_vos">Restrictions of Perl on VOS</a></li>
		<li><a href="#handling_of_underflow_and_overflow">Handling of underflow and overflow</a></li>
	</ul>

	<li><a href="#test_status">TEST STATUS</a></li>
	<li><a href="#support_status">SUPPORT STATUS</a></li>
	<li><a href="#author">AUTHOR</a></li>
	<li><a href="#last_update">LAST UPDATE</a></li>
</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>README.vos - Perl for Stratus VOS</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<p>This file contains notes for building perl on the Stratus VOS
operating system.  Perl is a scripting or macro language that is
popular on many systems.  See <a href="../../lib/Pod/perlbook.html">the perlbook manpage</a> for a number of good
books on Perl.</p>
<p>These are instructions for building Perl from source.  Most people can
simply download a pre-compiled distribution from the VOS anonymous FTP
site.  If you are running VOS Release 14.2.0 or earlier, download Perl
from <a href="ftp://ftp.stratus.com/pub/vos/posix/alpha/alpha.html">ftp://ftp.stratus.com/pub/vos/posix/alpha/alpha.html</a>  If you are
running VOS Release 14.3.0 or later, download Perl from
<a href="ftp://ftp.stratus.com/pub/vos/posix/ga/ga.html">ftp://ftp.stratus.com/pub/vos/posix/ga/ga.html</a>  Instructions for
unbundling the Perl distribution file are at
<a href="ftp://ftp.stratus.com/pub/vos/utility/utility.html">ftp://ftp.stratus.com/pub/vos/utility/utility.html</a></p>
<p>If you are running VOS Release 14.4.1 or later, you can obtain a
pre-compiled, supported copy of perl by purchasing Release 2.0.1
(or later) of the VOS GNU C++ and GNU Tools product from Stratus
Technologies.</p>
<p>
</p>
<h2><a name="multiple_methods_to_build_perl_for_vos">Multiple methods to build perl for VOS</a></h2>
<p>If you elect to build perl from its source code, you have several
different ways that you can build perl.  The method that you use
depends on the version of VOS that you are using and on the
architecture of your Stratus hardware platform.</p>
<ol>
<li>
<p>If you have a Stratus XA2000 (Motorola 68k-based) platform, you
must build perl using the alpha version of VOS POSIX support and
using the VOS Standard C Cross-compiler.  You must build perl on
VOS Release 14.1.0 (or later) on an XA/R or Continuum platform.</p>
<p>This version of perl is properly called &quot;miniperl&quot; because it
does not contain the complete perl functionality.</p>
<p>You must build perl with the compile_perl.cm command macro found
in the vos subdirectory.</p>
</li>
<li>
<p>If you have a Stratus XA/R (Intel i860-based) platform, you must
build perl using the alpha version of VOS POSIX support and using
the VOS Standard C compiler or cross-compiler.  You must build
perl on VOS Release 14.1.0 (or later) on an XA/R or Continuum
platform.</p>
<p>This version of perl is properly called &quot;miniperl&quot; because it
does not contain the complete perl functionality.</p>
<p>You must build perl with the compile_perl.cm command macro found
in the vos subdirectory.</p>
</li>
<li>
<p>If you have a Stratus Continuum (PA-RISC-based) platform that is
running a version of VOS earlier than VOS 14.3.0, you must build
perl using the alpha version of VOS POSIX support and using the
VOS Standard C compiler or cross-compiler.  You must build perl
on VOS Release 14.1.0 (or later) on an XA/R or Continuum
platform.</p>
<p>This version of perl is properly called &quot;miniperl&quot; because it
does not contain the complete perl functionality.</p>
<p>You must build perl with the compile_perl.cm command macro found
in the vos subdirectory.</p>
</li>
<li>
<p>If you have a Stratus Continuum (PA-RISC-based) platform that is
running VOS Release 14.3.0 through VOS Release 14.4.1, you must
build perl using the generally-available version of VOS POSIX
support, and using either the VOS Standard C compiler or the VOS
GNU C compiler.  You must build perl on VOS Release 14.3.0 (or
later) on a Continuum platform.</p>
<p>This version of perl is properly called &quot;miniperl&quot; because it
does not contain the complete perl functionality.</p>
<p>You must build perl with the compile_perl.cm command macro found
in the vos subdirectory.</p>
</li>
<li>
<p>If you have a Stratus Continuum (PA-RISC-based) platform that is
running VOS Release 14.5.0 or later, you can either use the
previous method to build &quot;miniperl&quot; or you can build &quot;full
perl&quot;, which contains the complete functionality of perl.  I
strongly recommend that you build full perl.  To build full
perl, you must use the generally-available version of VOS POSIX
support.  You must use the VOS GNU C compiler and the VOS GNU
C/C++ and GNU Tools Release 2.0.1 (or later) product.  You must
build full perl on VOS Release 14.5.0 (or later) on a Continuum
platform.</p>
<p>You must build full perl with the compile_full_perl.cm command
macro found in the vos subdirectory.</p>
</li>
</ol>
<p>
</p>
<h2><a name="stratus_posix_support">Stratus POSIX Support</a></h2>
<p>Note that there are two different implementations of POSIX.1
support on VOS.  There is an alpha version of POSIX that is
available from the Stratus anonymous ftp site
( <a href="ftp://ftp.stratus.com/pub/vos/posix/alpha/alpha.html">ftp://ftp.stratus.com/pub/vos/posix/alpha/alpha.html</a> ).  There
is a generally-available version of POSIX that comes with VOS
Release 14.3.0 or higher.  This port of POSIX will compile and
bind with either version of POSIX.</p>
<p>Most of the Perl features should work on VOS regardless of which
version of POSIX that you are using.  However, the alpha version
of POSIX is missing a number of key functions, and therefore any
attempt by perl.pm to call the following unimplemented POSIX
functions will result in an error message and an immediate and
fatal call to the VOS debugger.  They are &quot;dup&quot;, &quot;fork&quot;, and
&quot;waitpid&quot;.  The lack of these functions prevents you from
starting VOS commands and grabbing their output in perl.  The
workaround is to run the commands outside of perl, then have perl
process the output file.  These functions are all available in
the generally-available version of POSIX.</p>
<p>
</p>
<hr />
<h1><a name="installing_perl_in_vos">INSTALLING PERL IN VOS</a></h1>
<p>
</p>
<h2><a name="compiling_perl_5_on_vos">Compiling Perl 5 on VOS</a></h2>
<p>Before you can build Perl 5 on VOS, you need to have or acquire the
following additional items.</p>
<ol>
<li>
<p>The VOS Standard C Compiler (or the VOS Standard C
Cross-Compiler) and the VOS C Runtime.  If you are using
the generally-available version of POSIX support, you may
instead use the VOS GNU C/C++ Compiler.  These are
standard Stratus products.</p>
</li>
<li>
<p>Either the VOS OS TCP/IP or STCP product set.  If you are
building with the alpha version of POSIX you need the OS
TCP/IP product set.  If you are building with the
generally-available version of POSIX you need the STCP
product set.  These are standard Stratus products.</p>
</li>

⌨️ 快捷键说明

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