[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[3be4d97] | 6 | <sect1 id="ch-system-perl" xreflabel="Perl">
|
---|
[673b0d8] | 7 | <title>Perl-&perl-version;</title>
|
---|
| 8 | <?dbhtml filename="perl.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-perl"><primary sortas="a-Perl">Perl</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[5888299] | 12 | <para>The Perl package contains the Practical Extraction and Report Language.</para>
|
---|
| 13 |
|
---|
[673b0d8] | 14 | <screen>&buildtime; 2.9 SBU
|
---|
| 15 | &diskspace; 143 MB</screen>
|
---|
[3554fa3a] | 16 |
|
---|
[673b0d8] | 17 | <para>Perl installation depends on: Bash, Binutils, Coreutils, Diffutils,
|
---|
| 18 | Gawk, GCC, Glibc, Grep, Make, Sed.</para>
|
---|
[5888299] | 19 |
|
---|
[73aedd1d] | 20 |
|
---|
| 21 |
|
---|
| 22 | <sect2>
|
---|
| 23 | <title>Installation of Perl</title>
|
---|
| 24 |
|
---|
[4248b0e] | 25 | <para>If you want full control over the way Perl is set up, you can run the
|
---|
| 26 | interactive <command>Configure</command> script and hand-pick the way this
|
---|
[673b0d8] | 27 | package is built. If you think you can live with the (sensible)
|
---|
[4248b0e] | 28 | defaults it auto-detects, then prepare Perl for compilation with:</para>
|
---|
[73aedd1d] | 29 |
|
---|
[5a4b3da] | 30 | <screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"</userinput></screen>
|
---|
[73aedd1d] | 31 |
|
---|
[bcd0ce7] | 32 | <para>The meaning of the configure option:</para>
|
---|
[05073f6] | 33 |
|
---|
| 34 | <itemizedlist>
|
---|
| 35 | <listitem><para><userinput>-Dpager="/bin/less -isR"</userinput>: This corrects
|
---|
[bcd0ce7] | 36 | an error in the perldoc code with the invocation of the less
|
---|
| 37 | program.</para></listitem>
|
---|
[05073f6] | 38 | </itemizedlist>
|
---|
[5a4b3da] | 39 |
|
---|
[73aedd1d] | 40 | <para>Compile the package:</para>
|
---|
| 41 |
|
---|
| 42 | <screen><userinput>make</userinput></screen>
|
---|
| 43 |
|
---|
[8a5f906] | 44 | <para>If you wish to run the test suite, you first have to create a basic
|
---|
| 45 | <filename>/etc/hosts</filename> file, which is needed by a couple of tests to
|
---|
| 46 | resolve the name <emphasis>localhost</emphasis>:</para>
|
---|
[73aedd1d] | 47 |
|
---|
| 48 | <screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen>
|
---|
| 49 |
|
---|
| 50 | <para>Now run the tests, if you wish:</para>
|
---|
| 51 |
|
---|
| 52 | <screen><userinput>make test</userinput></screen>
|
---|
| 53 |
|
---|
[673b0d8] | 54 | <para>Finally, install the package:</para>
|
---|
[73aedd1d] | 55 |
|
---|
| 56 | <screen><userinput>make install</userinput></screen>
|
---|
| 57 |
|
---|
| 58 | </sect2>
|
---|
[6370fa6] | 59 |
|
---|
[5888299] | 60 |
|
---|
[673b0d8] | 61 | <sect2 id="contents-perl"><title>Contents of Perl</title>
|
---|
| 62 |
|
---|
| 63 | <para><emphasis>Installed programs</emphasis>: a2p, c2ph, dprofpp, enc2xs,
|
---|
| 64 | find2perl, h2ph, h2xs, libnetcfg, perl, perl&perl-version; (link to perl),
|
---|
| 65 | perlbug, perlcc, perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man,
|
---|
| 66 | pod2text, pod2usage, podchecker, podselect, psed (link to s2p), pstruct (link
|
---|
| 67 | to c2ph), s2p, splain and xsubpp</para>
|
---|
| 68 |
|
---|
| 69 | <para><emphasis>Installed libraries</emphasis>: (too many to name)</para>
|
---|
| 70 |
|
---|
| 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 | <sect2><title>Short descriptions</title>
|
---|
| 74 |
|
---|
| 75 | <indexterm zone="ch-system-perl a2p"><primary sortas="b-a2p">a2p</primary></indexterm>
|
---|
| 76 | <para id="a2p"><command>a2p</command> translates awk to perl.</para>
|
---|
| 77 |
|
---|
| 78 | <indexterm zone="ch-system-perl c2ph"><primary sortas="b-c2ph">c2ph</primary></indexterm>
|
---|
| 79 | <para id="c2ph"><command>c2ph</command> dumps C structures as generated from
|
---|
| 80 | "cc -g -S" stabs.</para>
|
---|
| 81 |
|
---|
| 82 | <indexterm zone="ch-system-perl dprofpp"><primary sortas="b-dprofpp">dprofpp</primary></indexterm>
|
---|
| 83 | <para id="dprofpp"><command>dprofpp</command> displays perl profile data.</para>
|
---|
| 84 |
|
---|
| 85 | <indexterm zone="ch-system-perl en2cxs"><primary sortas="b-en2cxs">en2cxs</primary></indexterm>
|
---|
| 86 | <para id="en2cxs"><command>en2cxs</command> builds a Perl extension for the Encode module,
|
---|
| 87 | from either Unicode Character Mappings or Tcl Encoding Files.</para>
|
---|
| 88 |
|
---|
| 89 | <indexterm zone="ch-system-perl find2perl"><primary sortas="b-find2perl">find2perl</primary></indexterm>
|
---|
| 90 | <para id="find2perl"><command>find2perl</command> translates find commands to perl.</para>
|
---|
| 91 |
|
---|
| 92 | <indexterm zone="ch-system-perl h2ph"><primary sortas="b-h2ph">h2ph</primary></indexterm>
|
---|
| 93 | <para id="h2ph"><command>h2ph</command> converts .h C header files to .ph Perl header files.</para>
|
---|
| 94 |
|
---|
| 95 | <indexterm zone="ch-system-perl h2xs"><primary sortas="b-h2xs">h2xs</primary></indexterm>
|
---|
| 96 | <para id="h2xs"><command>h2xs</command> converts .h C header files to Perl extensions.</para>
|
---|
| 97 |
|
---|
| 98 | <indexterm zone="ch-system-perl libnetcfg"><primary sortas="b-libnetcfg">libnetcfg</primary></indexterm>
|
---|
| 99 | <para id="libnetcfg"><command>libnetcfg</command> can be used to configure the libnet.</para>
|
---|
| 100 |
|
---|
| 101 | <indexterm zone="ch-system-perl perl"><primary sortas="b-perl">perl</primary></indexterm>
|
---|
| 102 | <para id="perl"><command>perl</command> combines some of the best features of C, sed,
|
---|
| 103 | awk and sh into a single swiss-army language.</para>
|
---|
| 104 |
|
---|
| 105 | <indexterm zone="ch-system-perl perlbug"><primary sortas="b-perlbug">perlbug</primary></indexterm>
|
---|
| 106 | <para id="perlbug"><command>perlbug</command> is used to generate bug reports about
|
---|
| 107 | Perl or the modules that come with it, and mail them.</para>
|
---|
| 108 |
|
---|
| 109 | <indexterm zone="ch-system-perl perlcc"><primary sortas="b-perlcc">perlcc</primary></indexterm>
|
---|
| 110 | <para id="perlcc"><command>perlcc</command> generates executables from Perl programs.</para>
|
---|
| 111 |
|
---|
| 112 | <indexterm zone="ch-system-perl perldoc"><primary sortas="b-perldoc">perldoc</primary></indexterm>
|
---|
| 113 | <para id="perldoc"><command>perldoc</command> displays a piece of documentation in pod
|
---|
| 114 | format that is embedded in the perl installation tree or in a perl script.</para>
|
---|
| 115 |
|
---|
| 116 | <indexterm zone="ch-system-perl perlivp"><primary sortas="b-perlivp">perlivp</primary></indexterm>
|
---|
| 117 | <para id="perlivp"><command>perlivp</command> is the Perl Installation Verification
|
---|
| 118 | Procedure. It can be used to verify that Perl and its libraries have been
|
---|
| 119 | installed correctly.</para>
|
---|
[6370fa6] | 120 |
|
---|
[673b0d8] | 121 | <indexterm zone="ch-system-perl piconv"><primary sortas="b-piconv">piconv</primary></indexterm>
|
---|
| 122 | <para id="piconv"><command>piconv</command> is a Perl version of the character encoding
|
---|
| 123 | converter <command>iconv</command>.</para>
|
---|
| 124 |
|
---|
| 125 | <indexterm zone="ch-system-perl pl2pm"><primary sortas="b-pl2pm">pl2pm</primary></indexterm>
|
---|
| 126 | <para id="pl2pm"><command>pl2pm</command> is a rough tool for converting Perl4 .pl
|
---|
| 127 | files to Perl5 .pm modules.</para>
|
---|
| 128 |
|
---|
| 129 | <indexterm zone="ch-system-perl pod2html"><primary sortas="b-pod2html">pod2html</primary></indexterm>
|
---|
| 130 | <para id="pod2html"><command>pod2html</command> converts files from pod format to HTML
|
---|
| 131 | format.</para>
|
---|
| 132 |
|
---|
| 133 | <indexterm zone="ch-system-perl pod2latex"><primary sortas="b-pod2latex">pod2latex</primary></indexterm>
|
---|
| 134 | <para id="pod2latex"><command>pod2latex</command> converts files from pod format to LaTeX
|
---|
| 135 | format.</para>
|
---|
| 136 |
|
---|
| 137 | <indexterm zone="ch-system-perl pod2man"><primary sortas="b-pod2man">pod2man</primary></indexterm>
|
---|
| 138 | <para id="pod2man"><command>pod2man</command> converts pod data to formatted *roff
|
---|
| 139 | input.</para>
|
---|
| 140 |
|
---|
| 141 | <indexterm zone="ch-system-perl pod2text"><primary sortas="b-pod2text">pod2text</primary></indexterm>
|
---|
| 142 | <para id="pod2text"><command>pod2text</command> converts pod data to formatted ASCII
|
---|
| 143 | text.</para>
|
---|
| 144 |
|
---|
| 145 | <indexterm zone="ch-system-perl pod2usage"><primary sortas="b-pod2usage">pod2usage</primary></indexterm>
|
---|
| 146 | <para id="pod2usage"><command>pod2usage</command> prints usage messages from embedded
|
---|
| 147 | pod docs in files.</para>
|
---|
| 148 |
|
---|
| 149 | <indexterm zone="ch-system-perl podchecker"><primary sortas="b-podchecker">podchecker</primary></indexterm>
|
---|
| 150 | <para id="podchecker"><command>podchecker</command> checks the syntax of pod format
|
---|
| 151 | documentation files.</para>
|
---|
| 152 |
|
---|
| 153 | <indexterm zone="ch-system-perl podselect"><primary sortas="b-podselect">podselect</primary></indexterm>
|
---|
| 154 | <para id="podselect"><command>podselect</command> displays selected sections of pod
|
---|
| 155 | documentation.</para>
|
---|
| 156 |
|
---|
| 157 | <indexterm zone="ch-system-perl psed"><primary sortas="b-psed">psed</primary></indexterm>
|
---|
| 158 | <para id="psed"><command>psed</command> is a Perl version of the stream editor
|
---|
| 159 | <userinput>sed</userinput>.</para>
|
---|
| 160 |
|
---|
| 161 | <indexterm zone="ch-system-perl pstruct"><primary sortas="b-pstruct">pstruct</primary></indexterm>
|
---|
| 162 | <para id="pstruct"><command>pstruct</command> dumps C structures as generated from
|
---|
| 163 | "cc -g -S" stabs.</para>
|
---|
| 164 |
|
---|
| 165 | <indexterm zone="ch-system-perl s2p"><primary sortas="b-s2p">s2p</primary></indexterm>
|
---|
| 166 | <para id="s2p"><command>s2p</command> translates sed to perl.</para>
|
---|
| 167 |
|
---|
| 168 | <indexterm zone="ch-system-perl splain"><primary sortas="b-splain">splain</primary></indexterm>
|
---|
| 169 | <para id="splain"><command>splain</command> is used to force verbose warning
|
---|
| 170 | diagnostics in perl.</para>
|
---|
| 171 |
|
---|
| 172 | <indexterm zone="ch-system-perl xsubpp"><primary sortas="b-xsubpp">xsubpp</primary></indexterm>
|
---|
| 173 | <para id="xsubpp"><command>xsubpp</command> converts Perl XS code into C code.</para>
|
---|
| 174 |
|
---|
| 175 | </sect2>
|
---|
| 176 |
|
---|
| 177 |
|
---|
| 178 |
|
---|
| 179 | </sect1>
|
---|