diff options
Diffstat (limited to 'chapter06/perl.xml')
-rw-r--r-- | chapter06/perl.xml | 268 |
1 files changed, 5 insertions, 263 deletions
diff --git a/chapter06/perl.xml b/chapter06/perl.xml index 0b57357be..7ca249ca0 100644 --- a/chapter06/perl.xml +++ b/chapter06/perl.xml @@ -10,7 +10,6 @@ <indexterm zone="ch-system-perl"><primary sortas="a-Perl">Perl</primary></indexterm> <sect2 role="package"><title/> -<para>The Perl package contains the Practical Extraction and Report Language.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> @@ -18,48 +17,28 @@ <seglistitem><seg>2.9 SBU</seg><seg>143 MB</seg></seglistitem> </segmentedlist> -<segmentedlist> -<segtitle>Perl installation depends on</segtitle> -<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, -Gawk, GCC, Glibc, Grep, Make, Sed</seg></seglistitem> -</segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Perl</title> -<para>If you want full control over the way Perl is set up, you can run the -interactive <command>Configure</command> script and hand-pick the way this -package is built. If you think you can live with the (sensible) -defaults it auto-detects, then prepare Perl for compilation with:</para> +<para>Prepare Perl for compilation:</para> <screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"</userinput></screen> -<para>The meaning of the configure option:</para> - -<variablelist> -<varlistentry> -<term><parameter>-Dpager="/bin/less -isR"</parameter></term> -<listitem><para>This corrects an error in the <command>perldoc</command> code with the invocation -of the <command>less</command> program.</para></listitem> -</varlistentry> -</variablelist> - <para>Compile the package:</para> <screen><userinput>make</userinput></screen> -<para>If you wish to run the test suite, you first have to create a basic -<filename>/etc/hosts</filename> file, which is needed by a couple of tests to -resolve the name <emphasis>localhost</emphasis>:</para> +<para>Create a basic <filename>/etc/hosts</filename> file:</para> <screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen> -<para>Now run the tests, if you wish:</para> +<para>Run the tests:</para> <screen><userinput>make test</userinput></screen> -<para>Finally, install the package:</para> +<para>Install the package:</para> <screen><userinput>make install</userinput></screen> @@ -68,244 +47,7 @@ resolve the name <emphasis>localhost</emphasis>:</para> <sect2 id="contents-perl" role="content"><title>Contents of Perl</title> -<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>(too many to name)</seg></seglistitem> -</segmentedlist> - -<variablelist><title>Short descriptions</title> - -<varlistentry id="a2p"> -<term><command>a2p</command></term> -<listitem> -<indexterm zone="ch-system-perl a2p"><primary sortas="b-a2p">a2p</primary></indexterm> -<para>translates awk to Perl.</para> -</listitem> -</varlistentry> - -<varlistentry id="c2ph"> -<term><command>c2ph</command></term> -<listitem> -<indexterm zone="ch-system-perl c2ph"><primary sortas="b-c2ph">c2ph</primary></indexterm> -<para>dumps C structures as generated from <quote>cc -g -S</quote> stabs.</para> -</listitem> -</varlistentry> - -<varlistentry id="dprofpp"> -<term><command>dprofpp</command></term> -<listitem> -<indexterm zone="ch-system-perl dprofpp"><primary sortas="b-dprofpp">dprofpp</primary></indexterm> -<para>displays Perl profile data.</para> -</listitem> -</varlistentry> - -<varlistentry id="en2cxs"> -<term><command>en2cxs</command></term> -<listitem> -<indexterm zone="ch-system-perl en2cxs"><primary sortas="b-en2cxs">en2cxs</primary></indexterm> -<para>builds a Perl extension for the Encode module, -from either Unicode Character Mappings or Tcl Encoding Files.</para> -</listitem> -</varlistentry> - -<varlistentry id="find2perl"> -<term><command>find2perl</command></term> -<listitem> -<indexterm zone="ch-system-perl find2perl"><primary sortas="b-find2perl">find2perl</primary></indexterm> -<para>translates find commands to Perl.</para> -</listitem> -</varlistentry> - -<varlistentry id="h2ph"> -<term><command>h2ph</command></term> -<listitem> -<indexterm zone="ch-system-perl h2ph"><primary sortas="b-h2ph">h2ph</primary></indexterm> -<para>converts <filename class="extension">.h</filename> C header files to -<filename class="extension">.ph</filename> Perl header files.</para> -</listitem> -</varlistentry> - -<varlistentry id="h2xs"> -<term><command>h2xs</command></term> -<listitem> -<indexterm zone="ch-system-perl h2xs"><primary sortas="b-h2xs">h2xs</primary></indexterm> -<para>converts <filename class="extension">.h</filename> C header files to Perl extensions.</para> -</listitem> -</varlistentry> - -<varlistentry id="libnetcfg"> -<term><command>libnetcfg</command></term> -<listitem> -<indexterm zone="ch-system-perl libnetcfg"><primary sortas="b-libnetcfg">libnetcfg</primary></indexterm> -<para>can be used to configure the <filename class="libraryfile">libnet</filename>.</para> -</listitem> -</varlistentry> - -<varlistentry id="perl"> -<term><command>perl</command></term> -<listitem> -<indexterm zone="ch-system-perl perl"><primary sortas="b-perl">perl</primary></indexterm> -<para>combines some of the best features of C, sed, -awk and sh into a single swiss-army language.</para> -</listitem> -</varlistentry> - -<varlistentry id="perlbug"> -<term><command>perlbug</command></term> -<listitem> -<indexterm zone="ch-system-perl perlbug"><primary sortas="b-perlbug">perlbug</primary></indexterm> -<para>is used to generate bug reports about -Perl or the modules that come with it, and mail them.</para> -</listitem> -</varlistentry> - -<varlistentry id="perlcc"> -<term><command>perlcc</command></term> -<listitem> -<indexterm zone="ch-system-perl perlcc"><primary sortas="b-perlcc">perlcc</primary></indexterm> -<para>generates executables from Perl programs.</para> -</listitem> -</varlistentry> - -<varlistentry id="perldoc"> -<term><command>perldoc</command></term> -<listitem> -<indexterm zone="ch-system-perl perldoc"><primary sortas="b-perldoc">perldoc</primary></indexterm> -<para>displays a piece of documentation in pod -format that is embedded in the Perl installation tree or in a Perl script.</para> -</listitem> -</varlistentry> - -<varlistentry id="perlivp"> -<term><command>perlivp</command></term> -<listitem> -<indexterm zone="ch-system-perl perlivp"><primary sortas="b-perlivp">perlivp</primary></indexterm> -<para>is the Perl Installation Verification Procedure. It can be used to verify that -Perl and its libraries have been installed correctly.</para> -</listitem> -</varlistentry> - -<varlistentry id="piconv"> -<term><command>piconv</command></term> -<listitem> -<indexterm zone="ch-system-perl piconv"><primary sortas="b-piconv">piconv</primary></indexterm> -<para>is a Perl version of the character encoding -converter <command>iconv</command>.</para> -</listitem> -</varlistentry> - -<varlistentry id="pl2pm"> -<term><command>pl2pm</command></term> -<listitem> -<indexterm zone="ch-system-perl pl2pm"><primary sortas="b-pl2pm">pl2pm</primary></indexterm> -<para>is a rough tool for converting Perl4 <filename class="extension">.pl</filename> -files to Perl5 <filename class="extension">.pm</filename> modules.</para> -</listitem> -</varlistentry> - -<varlistentry id="pod2html"> -<term><command>pod2html</command></term> -<listitem> -<indexterm zone="ch-system-perl pod2html"><primary sortas="b-pod2html">pod2html</primary></indexterm> -<para>converts files from pod format to HTML format.</para> -</listitem> -</varlistentry> - -<varlistentry id="pod2latex"> -<term><command>pod2latex</command></term> -<listitem> -<indexterm zone="ch-system-perl pod2latex"><primary sortas="b-pod2latex">pod2latex</primary></indexterm> -<para>converts files from pod format to LaTeX format.</para> -</listitem> -</varlistentry> - -<varlistentry id="pod2man"> -<term><command>pod2man</command></term> -<listitem> -<indexterm zone="ch-system-perl pod2man"><primary sortas="b-pod2man">pod2man</primary></indexterm> -<para>converts pod data to formatted *roff input.</para> -</listitem> -</varlistentry> - -<varlistentry id="pod2text"> -<term><command>pod2text</command></term> -<listitem> -<indexterm zone="ch-system-perl pod2text"><primary sortas="b-pod2text">pod2text</primary></indexterm> -<para>converts pod data to formatted ASCII text.</para> -</listitem> -</varlistentry> - -<varlistentry id="pod2usage"> -<term><command>pod2usage</command></term> -<listitem> -<indexterm zone="ch-system-perl pod2usage"><primary sortas="b-pod2usage">pod2usage</primary></indexterm> -<para>prints usage messages from embedded pod docs in files.</para> -</listitem> -</varlistentry> - -<varlistentry id="podchecker"> -<term><command>podchecker</command></term> -<listitem> -<indexterm zone="ch-system-perl podchecker"><primary sortas="b-podchecker">podchecker</primary></indexterm> -<para>checks the syntax of pod format documentation files.</para> -</listitem> -</varlistentry> - -<varlistentry id="podselect"> -<term><command>podselect</command></term> -<listitem> -<indexterm zone="ch-system-perl podselect"><primary sortas="b-podselect">podselect</primary></indexterm> -<para>displays selected sections of pod documentation.</para> -</listitem> -</varlistentry> - -<varlistentry id="psed"> -<term><command>psed</command></term> -<listitem> -<indexterm zone="ch-system-perl psed"><primary sortas="b-psed">psed</primary></indexterm> -<para>is a Perl version of the stream editor <command>sed</command>.</para> -</listitem> -</varlistentry> - -<varlistentry id="pstruct"> -<term><command>pstruct</command></term> -<listitem> -<indexterm zone="ch-system-perl pstruct"><primary sortas="b-pstruct">pstruct</primary></indexterm> -<para>dumps C structures as generated from <quote>cc -g -S</quote> stabs.</para> -</listitem> -</varlistentry> - -<varlistentry id="s2p"> -<term><command>s2p</command></term> -<listitem> -<indexterm zone="ch-system-perl s2p"><primary sortas="b-s2p">s2p</primary></indexterm> -<para>translates sed to Perl.</para> -</listitem> -</varlistentry> - -<varlistentry id="splain"> -<term><command>splain</command></term> -<listitem> -<indexterm zone="ch-system-perl splain"><primary sortas="b-splain">splain</primary></indexterm> -<para>is used to force verbose warning -diagnostics in Perl.</para> -</listitem> -</varlistentry> - -<varlistentry id="xsubpp"> -<term><command>xsubpp</command></term> -<listitem> -<indexterm zone="ch-system-perl xsubpp"><primary sortas="b-xsubpp">xsubpp</primary></indexterm> -<para>converts Perl XS code into C code.</para> -</listitem> -</varlistentry> -</variablelist> +<para>See testing</para> </sect2> |