2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-01-30 18:06:48 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect1 id="ch-system-perl" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>Perl-&perl-version;</title>
|
|
|
|
<?dbhtml filename="perl.html"?>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-perl"><primary sortas="a-Perl">Perl</primary></indexterm>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="package"><title/>
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>The Perl package contains the Practical Extraction and Report Language.</para>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2005-06-14 07:08:58 +01:00
|
|
|
<seglistitem><seg>2.9 SBU</seg><seg>137 MB</seg></seglistitem>
|
2004-05-16 01:08:42 +01:00
|
|
|
</segmentedlist>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<segmentedlist>
|
2005-02-24 22:26:46 +00:00
|
|
|
<segtitle>&dependencies;</segtitle>
|
2006-01-06 01:59:08 +00:00
|
|
|
<seglistitem><seg>Bash, Binutils, Coreutils, DB, Diffutils,
|
2005-02-19 22:16:42 +00:00
|
|
|
Gawk, GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-16 01:08:42 +01:00
|
|
|
</sect2>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of Perl</title>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>To have full control over the way Perl is set up, run the
|
|
|
|
interactive <command>Configure</command> script and hand-pick the way
|
|
|
|
this package is built. If the defaults it auto-detects are suitable,
|
|
|
|
prepare Perl for compilation with:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2005-11-16 03:40:44 +00:00
|
|
|
<screen><userinput>./configure.gnu --prefix=/usr -Dpager="/usr/bin/less -isR"</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2005-06-20 19:57:20 +01:00
|
|
|
<para>The meaning of the configure options:</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2005-11-16 03:40:44 +00:00
|
|
|
<term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
|
2005-08-06 12:49:07 +01:00
|
|
|
<listitem><para>This corrects an error in the way that
|
|
|
|
<command>perldoc</command> invokes the <command>less</command> program.</para>
|
|
|
|
</listitem>
|
2005-02-19 22:16:42 +00:00
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>To run the test suite, first create a basic
|
2005-06-30 18:53:21 +01:00
|
|
|
<filename>/etc/hosts</filename> file which is needed by a couple of the tests to
|
|
|
|
resolve the network name localhost:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Now run the tests, if desired:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make test</userinput></screen>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<sect2 id="contents-perl" role="content"><title>Contents of Perl</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed programs</segtitle>
|
|
|
|
<segtitle>Installed libraries</segtitle>
|
|
|
|
<seglistitem><seg>a2p, c2ph, dprofpp, enc2xs,
|
|
|
|
find2perl, h2ph, h2xs, libnetcfg, perl, perl&perl-version; (link to perl),
|
|
|
|
perlbug, perlcc, perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man,
|
|
|
|
pod2text, pod2usage, podchecker, podselect, psed (link to s2p), pstruct (link
|
|
|
|
to c2ph), s2p, splain, and xsubpp</seg>
|
|
|
|
<seg>Several hundred which cannot all be listed here</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
2005-02-24 18:32:19 +00:00
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<varlistentry id="a2p">
|
|
|
|
<term><command>a2p</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Translates awk to Perl</para>
|
|
|
|
<indexterm zone="ch-system-perl a2p"><primary sortas="b-a2p">a2p</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="c2ph">
|
|
|
|
<term><command>c2ph</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Dumps C structures as generated from <command>cc -g -S</command></para>
|
|
|
|
<indexterm zone="ch-system-perl c2ph"><primary sortas="b-c2ph">c2ph</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="dprofpp">
|
|
|
|
<term><command>dprofpp</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Displays Perl profile data</para>
|
|
|
|
<indexterm zone="ch-system-perl dprofpp"><primary sortas="b-dprofpp">dprofpp</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="en2cxs">
|
|
|
|
<term><command>en2cxs</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Builds a Perl extension for the Encode module from either
|
|
|
|
Unicode Character Mappings or Tcl Encoding Files</para>
|
|
|
|
<indexterm zone="ch-system-perl en2cxs"><primary sortas="b-en2cxs">en2cxs</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="find2perl">
|
|
|
|
<term><command>find2perl</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Translates <command>find</command> commands to Perl</para>
|
|
|
|
<indexterm zone="ch-system-perl find2perl"><primary sortas="b-find2perl">find2perl</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="h2ph">
|
|
|
|
<term><command>h2ph</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Converts <filename class="extension">.h</filename> C header files to
|
|
|
|
<filename class="extension">.ph</filename> Perl header files</para>
|
|
|
|
<indexterm zone="ch-system-perl h2ph"><primary sortas="b-h2ph">h2ph</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="h2xs">
|
|
|
|
<term><command>h2xs</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Converts <filename class="extension">.h</filename> C header files to Perl extensions</para>
|
|
|
|
<indexterm zone="ch-system-perl h2xs"><primary sortas="b-h2xs">h2xs</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libnetcfg">
|
|
|
|
<term><command>libnetcfg</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Can be used to configure the <filename class="libraryfile">libnet</filename></para>
|
|
|
|
<indexterm zone="ch-system-perl libnetcfg"><primary sortas="b-libnetcfg">libnetcfg</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="perl">
|
|
|
|
<term><command>perl</command></term>
|
|
|
|
<listitem>
|
2005-06-16 17:47:40 +01:00
|
|
|
<para>Combines some of the best features of C, <command>sed</command>,
|
|
|
|
<command>awk</command> and <command>sh</command> into a single swiss-army
|
|
|
|
language</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-perl perl"><primary sortas="b-perl">perl</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="perl-version">
|
|
|
|
<term><command>perl&perl-version;</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>A hard link to <command>perl</command></para>
|
|
|
|
<indexterm zone="ch-system-perl perl-version"><primary
|
|
|
|
sortas="b-perl&perl-version;">perl&perl-version;</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
|
|
|
<varlistentry id="perlbug">
|
|
|
|
<term><command>perlbug</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Used to generate bug reports about Perl, or the modules that come
|
|
|
|
with it, and mail them</para>
|
|
|
|
<indexterm zone="ch-system-perl perlbug"><primary sortas="b-perlbug">perlbug</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="perlcc">
|
|
|
|
<term><command>perlcc</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Generates executables from Perl programs</para>
|
|
|
|
<indexterm zone="ch-system-perl perlcc"><primary sortas="b-perlcc">perlcc</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="perldoc">
|
|
|
|
<term><command>perldoc</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Displays a piece of documentation in pod format that is embedded
|
|
|
|
in the Perl installation tree or in a Perl script</para>
|
|
|
|
<indexterm zone="ch-system-perl perldoc"><primary sortas="b-perldoc">perldoc</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="perlivp">
|
|
|
|
<term><command>perlivp</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>The Perl Installation Verification Procedure; it can be used to
|
|
|
|
verify that Perl and its libraries have been installed
|
|
|
|
correctly</para>
|
|
|
|
<indexterm zone="ch-system-perl perlivp"><primary sortas="b-perlivp">perlivp</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="piconv">
|
|
|
|
<term><command>piconv</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>A Perl version of the character encoding converter
|
|
|
|
<command>iconv</command></para>
|
|
|
|
<indexterm zone="ch-system-perl piconv"><primary sortas="b-piconv">piconv</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pl2pm">
|
|
|
|
<term><command>pl2pm</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>A rough tool for converting Perl4 <filename class="extension">.pl</filename>
|
|
|
|
files to Perl5 <filename class="extension">.pm</filename> modules</para>
|
|
|
|
<indexterm zone="ch-system-perl pl2pm"><primary sortas="b-pl2pm">pl2pm</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pod2html">
|
|
|
|
<term><command>pod2html</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Converts files from pod format to HTML format</para>
|
|
|
|
<indexterm zone="ch-system-perl pod2html"><primary sortas="b-pod2html">pod2html</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pod2latex">
|
|
|
|
<term><command>pod2latex</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Converts files from pod format to LaTeX format</para>
|
|
|
|
<indexterm zone="ch-system-perl pod2latex"><primary sortas="b-pod2latex">pod2latex</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pod2man">
|
|
|
|
<term><command>pod2man</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Converts pod data to formatted *roff input</para>
|
|
|
|
<indexterm zone="ch-system-perl pod2man"><primary sortas="b-pod2man">pod2man</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pod2text">
|
|
|
|
<term><command>pod2text</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Converts pod data to formatted ASCII text</para>
|
|
|
|
<indexterm zone="ch-system-perl pod2text"><primary sortas="b-pod2text">pod2text</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pod2usage">
|
|
|
|
<term><command>pod2usage</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Prints usage messages from embedded pod docs in files</para>
|
|
|
|
<indexterm zone="ch-system-perl pod2usage"><primary sortas="b-pod2usage">pod2usage</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="podchecker">
|
|
|
|
<term><command>podchecker</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Checks the syntax of pod format documentation files</para>
|
|
|
|
<indexterm zone="ch-system-perl podchecker"><primary sortas="b-podchecker">podchecker</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="podselect">
|
|
|
|
<term><command>podselect</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Displays selected sections of pod documentation</para>
|
|
|
|
<indexterm zone="ch-system-perl podselect"><primary sortas="b-podselect">podselect</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="psed">
|
|
|
|
<term><command>psed</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>A Perl version of the stream editor <command>sed</command></para>
|
|
|
|
<indexterm zone="ch-system-perl psed"><primary sortas="b-psed">psed</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pstruct">
|
|
|
|
<term><command>pstruct</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Dumps C structures as generated from <command>cc -g -S</command> stabs</para>
|
|
|
|
<indexterm zone="ch-system-perl pstruct"><primary sortas="b-pstruct">pstruct</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="s2p">
|
|
|
|
<term><command>s2p</command></term>
|
|
|
|
<listitem>
|
2005-06-16 17:47:40 +01:00
|
|
|
<para>Translates <command>sed</command> scripts to Perl</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-system-perl s2p"><primary sortas="b-s2p">s2p</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="splain">
|
|
|
|
<term><command>splain</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Is used to force verbose warning diagnostics in Perl</para>
|
|
|
|
<indexterm zone="ch-system-perl splain"><primary sortas="b-splain">splain</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xsubpp">
|
|
|
|
<term><command>xsubpp</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Converts Perl XS code into C code</para>
|
|
|
|
<indexterm zone="ch-system-perl xsubpp"><primary sortas="b-xsubpp">xsubpp</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
2005-02-19 22:16:42 +00:00
|
|
|
|