[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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-perl" xreflabel="Perl" role="wrap">
|
---|
[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 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Perl package contains the Practical Extraction and Report Language.</para>
|
---|
| 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
| 18 | <seglistitem><seg>2.9 SBU</seg><seg>143 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
[3554fa3a] | 20 |
|
---|
[a001133] | 21 | <segmentedlist>
|
---|
| 22 | <segtitle>Perl installation depends on</segtitle>
|
---|
| 23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 24 | Gawk, GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[5888299] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[73aedd1d] | 29 | <title>Installation of Perl</title>
|
---|
| 30 |
|
---|
[4248b0e] | 31 | <para>If you want full control over the way Perl is set up, you can run the
|
---|
| 32 | interactive <command>Configure</command> script and hand-pick the way this
|
---|
[673b0d8] | 33 | package is built. If you think you can live with the (sensible)
|
---|
[4248b0e] | 34 | defaults it auto-detects, then prepare Perl for compilation with:</para>
|
---|
[73aedd1d] | 35 |
|
---|
[5a4b3da] | 36 | <screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"</userinput></screen>
|
---|
[73aedd1d] | 37 |
|
---|
[bcd0ce7] | 38 | <para>The meaning of the configure option:</para>
|
---|
[05073f6] | 39 |
|
---|
[df8334f] | 40 | <variablelist>
|
---|
| 41 | <varlistentry>
|
---|
| 42 | <term><userinput>-Dpager="/bin/less -isR"</userinput></term>
|
---|
| 43 | <listitem><para>This corrects an error in the perldoc code with the invocation
|
---|
| 44 | of the less program.</para></listitem>
|
---|
| 45 | </varlistentry>
|
---|
| 46 | </variablelist>
|
---|
[5a4b3da] | 47 |
|
---|
[73aedd1d] | 48 | <para>Compile the package:</para>
|
---|
| 49 |
|
---|
| 50 | <screen><userinput>make</userinput></screen>
|
---|
| 51 |
|
---|
[8a5f906] | 52 | <para>If you wish to run the test suite, you first have to create a basic
|
---|
| 53 | <filename>/etc/hosts</filename> file, which is needed by a couple of tests to
|
---|
| 54 | resolve the name <emphasis>localhost</emphasis>:</para>
|
---|
[73aedd1d] | 55 |
|
---|
| 56 | <screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen>
|
---|
| 57 |
|
---|
| 58 | <para>Now run the tests, if you wish:</para>
|
---|
| 59 |
|
---|
| 60 | <screen><userinput>make test</userinput></screen>
|
---|
| 61 |
|
---|
[673b0d8] | 62 | <para>Finally, install the package:</para>
|
---|
[73aedd1d] | 63 |
|
---|
| 64 | <screen><userinput>make install</userinput></screen>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
[6370fa6] | 67 |
|
---|
[5888299] | 68 |
|
---|
[c6cb3aa] | 69 | <sect2 id="contents-perl" role="content"><title>Contents of Perl</title>
|
---|
[673b0d8] | 70 |
|
---|
[c6cb3aa] | 71 | <segmentedlist>
|
---|
| 72 | <segtitle>Installed programs</segtitle>
|
---|
| 73 | <segtitle>Installed libraries</segtitle>
|
---|
| 74 | <seglistitem><seg>a2p, c2ph, dprofpp, enc2xs,
|
---|
[673b0d8] | 75 | find2perl, h2ph, h2xs, libnetcfg, perl, perl&perl-version; (link to perl),
|
---|
| 76 | perlbug, perlcc, perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man,
|
---|
| 77 | pod2text, pod2usage, podchecker, podselect, psed (link to s2p), pstruct (link
|
---|
[c6cb3aa] | 78 | to c2ph), s2p, splain and xsubpp</seg>
|
---|
| 79 | <seg>(too many to name)</seg></seglistitem>
|
---|
| 80 | </segmentedlist>
|
---|
[673b0d8] | 81 |
|
---|
[c6cb3aa] | 82 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 83 |
|
---|
[c6cb3aa] | 84 | <varlistentry>
|
---|
| 85 | <term id="a2p"><command>a2p</command></term>
|
---|
| 86 | <listitem>
|
---|
[673b0d8] | 87 | <indexterm zone="ch-system-perl a2p"><primary sortas="b-a2p">a2p</primary></indexterm>
|
---|
[c6cb3aa] | 88 | <para>translates awk to perl.</para>
|
---|
| 89 | </listitem>
|
---|
| 90 | </varlistentry>
|
---|
[673b0d8] | 91 |
|
---|
[c6cb3aa] | 92 | <varlistentry>
|
---|
| 93 | <term id="c2ph"><command>c2ph</command></term>
|
---|
| 94 | <listitem>
|
---|
[673b0d8] | 95 | <indexterm zone="ch-system-perl c2ph"><primary sortas="b-c2ph">c2ph</primary></indexterm>
|
---|
[c6cb3aa] | 96 | <para>dumps C structures as generated from "cc -g -S" stabs.</para>
|
---|
| 97 | </listitem>
|
---|
| 98 | </varlistentry>
|
---|
[673b0d8] | 99 |
|
---|
[c6cb3aa] | 100 | <varlistentry>
|
---|
| 101 | <term id="dprofpp"><command>dprofpp</command></term>
|
---|
| 102 | <listitem>
|
---|
[673b0d8] | 103 | <indexterm zone="ch-system-perl dprofpp"><primary sortas="b-dprofpp">dprofpp</primary></indexterm>
|
---|
[c6cb3aa] | 104 | <para>displays perl profile data.</para>
|
---|
| 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
[673b0d8] | 107 |
|
---|
[c6cb3aa] | 108 | <varlistentry>
|
---|
| 109 | <term id="en2cxs"><command>en2cxs</command></term>
|
---|
| 110 | <listitem>
|
---|
[673b0d8] | 111 | <indexterm zone="ch-system-perl en2cxs"><primary sortas="b-en2cxs">en2cxs</primary></indexterm>
|
---|
[c6cb3aa] | 112 | <para>builds a Perl extension for the Encode module,
|
---|
[673b0d8] | 113 | from either Unicode Character Mappings or Tcl Encoding Files.</para>
|
---|
[c6cb3aa] | 114 | </listitem>
|
---|
| 115 | </varlistentry>
|
---|
[673b0d8] | 116 |
|
---|
[c6cb3aa] | 117 | <varlistentry>
|
---|
| 118 | <term id="find2perl"><command>find2perl</command></term>
|
---|
| 119 | <listitem>
|
---|
[673b0d8] | 120 | <indexterm zone="ch-system-perl find2perl"><primary sortas="b-find2perl">find2perl</primary></indexterm>
|
---|
[c6cb3aa] | 121 | <para>translates find commands to perl.</para>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
[673b0d8] | 124 |
|
---|
[c6cb3aa] | 125 | <varlistentry>
|
---|
| 126 | <term id="h2ph"><command>h2ph</command></term>
|
---|
| 127 | <listitem>
|
---|
[673b0d8] | 128 | <indexterm zone="ch-system-perl h2ph"><primary sortas="b-h2ph">h2ph</primary></indexterm>
|
---|
[c6cb3aa] | 129 | <para>converts .h C header files to .ph Perl header files.</para>
|
---|
| 130 | </listitem>
|
---|
| 131 | </varlistentry>
|
---|
[673b0d8] | 132 |
|
---|
[c6cb3aa] | 133 | <varlistentry>
|
---|
| 134 | <term id="h2xs"><command>h2xs</command></term>
|
---|
| 135 | <listitem>
|
---|
[673b0d8] | 136 | <indexterm zone="ch-system-perl h2xs"><primary sortas="b-h2xs">h2xs</primary></indexterm>
|
---|
[c6cb3aa] | 137 | <para>converts .h C header files to Perl extensions.</para>
|
---|
| 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
[673b0d8] | 140 |
|
---|
[c6cb3aa] | 141 | <varlistentry>
|
---|
| 142 | <term id="libnetcfg"><command>libnetcfg</command></term>
|
---|
| 143 | <listitem>
|
---|
[673b0d8] | 144 | <indexterm zone="ch-system-perl libnetcfg"><primary sortas="b-libnetcfg">libnetcfg</primary></indexterm>
|
---|
[c6cb3aa] | 145 | <para>can be used to configure the libnet.</para>
|
---|
| 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
[673b0d8] | 148 |
|
---|
[c6cb3aa] | 149 | <varlistentry>
|
---|
| 150 | <term id="perl"><command>perl</command></term>
|
---|
| 151 | <listitem>
|
---|
[673b0d8] | 152 | <indexterm zone="ch-system-perl perl"><primary sortas="b-perl">perl</primary></indexterm>
|
---|
[c6cb3aa] | 153 | <para>combines some of the best features of C, sed,
|
---|
[673b0d8] | 154 | awk and sh into a single swiss-army language.</para>
|
---|
[c6cb3aa] | 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
[673b0d8] | 157 |
|
---|
[c6cb3aa] | 158 | <varlistentry>
|
---|
| 159 | <term id="perlbug"><command>perlbug</command></term>
|
---|
| 160 | <listitem>
|
---|
[673b0d8] | 161 | <indexterm zone="ch-system-perl perlbug"><primary sortas="b-perlbug">perlbug</primary></indexterm>
|
---|
[c6cb3aa] | 162 | <para>is used to generate bug reports about
|
---|
[673b0d8] | 163 | Perl or the modules that come with it, and mail them.</para>
|
---|
[c6cb3aa] | 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
[673b0d8] | 166 |
|
---|
[c6cb3aa] | 167 | <varlistentry>
|
---|
| 168 | <term id="perlcc"><command>perlcc</command></term>
|
---|
| 169 | <listitem>
|
---|
[673b0d8] | 170 | <indexterm zone="ch-system-perl perlcc"><primary sortas="b-perlcc">perlcc</primary></indexterm>
|
---|
[c6cb3aa] | 171 | <para>generates executables from Perl programs.</para>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
[673b0d8] | 174 |
|
---|
[c6cb3aa] | 175 | <varlistentry>
|
---|
| 176 | <term id="perldoc"><command>perldoc</command></term>
|
---|
| 177 | <listitem>
|
---|
[673b0d8] | 178 | <indexterm zone="ch-system-perl perldoc"><primary sortas="b-perldoc">perldoc</primary></indexterm>
|
---|
[c6cb3aa] | 179 | <para>displays a piece of documentation in pod
|
---|
[673b0d8] | 180 | format that is embedded in the perl installation tree or in a perl script.</para>
|
---|
[c6cb3aa] | 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
[673b0d8] | 183 |
|
---|
[c6cb3aa] | 184 | <varlistentry>
|
---|
| 185 | <term id="perlivp"><command>perlivp</command></term>
|
---|
| 186 | <listitem>
|
---|
[673b0d8] | 187 | <indexterm zone="ch-system-perl perlivp"><primary sortas="b-perlivp">perlivp</primary></indexterm>
|
---|
[c6cb3aa] | 188 | <para>is the Perl Installation Verification Procedure. It can be used to verify that
|
---|
| 189 | Perl and its libraries have been installed correctly.</para>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 |
|
---|
| 193 | <varlistentry>
|
---|
| 194 | <term id="piconv"><command>piconv</command></term>
|
---|
| 195 | <listitem>
|
---|
[673b0d8] | 196 | <indexterm zone="ch-system-perl piconv"><primary sortas="b-piconv">piconv</primary></indexterm>
|
---|
[c6cb3aa] | 197 | <para>is a Perl version of the character encoding
|
---|
[673b0d8] | 198 | converter <command>iconv</command>.</para>
|
---|
[c6cb3aa] | 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
[673b0d8] | 201 |
|
---|
[c6cb3aa] | 202 | <varlistentry>
|
---|
| 203 | <term id="pl2pm"><command>pl2pm</command></term>
|
---|
| 204 | <listitem>
|
---|
[673b0d8] | 205 | <indexterm zone="ch-system-perl pl2pm"><primary sortas="b-pl2pm">pl2pm</primary></indexterm>
|
---|
[c6cb3aa] | 206 | <para>is a rough tool for converting Perl4 .pl files to Perl5 .pm modules.</para>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
[673b0d8] | 209 |
|
---|
[c6cb3aa] | 210 | <varlistentry>
|
---|
| 211 | <term id="pod2html"><command>pod2html</command></term>
|
---|
| 212 | <listitem>
|
---|
[673b0d8] | 213 | <indexterm zone="ch-system-perl pod2html"><primary sortas="b-pod2html">pod2html</primary></indexterm>
|
---|
[c6cb3aa] | 214 | <para>converts files from pod format to HTML format.</para>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
[673b0d8] | 217 |
|
---|
[c6cb3aa] | 218 | <varlistentry>
|
---|
| 219 | <term id="pod2latex"><command>pod2latex</command></term>
|
---|
| 220 | <listitem>
|
---|
[673b0d8] | 221 | <indexterm zone="ch-system-perl pod2latex"><primary sortas="b-pod2latex">pod2latex</primary></indexterm>
|
---|
[c6cb3aa] | 222 | <para>converts files from pod format to LaTeX format.</para>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
[673b0d8] | 225 |
|
---|
[c6cb3aa] | 226 | <varlistentry>
|
---|
| 227 | <term id="pod2man"><command>pod2man</command></term>
|
---|
| 228 | <listitem>
|
---|
[673b0d8] | 229 | <indexterm zone="ch-system-perl pod2man"><primary sortas="b-pod2man">pod2man</primary></indexterm>
|
---|
[c6cb3aa] | 230 | <para>converts pod data to formatted *roff input.</para>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
[673b0d8] | 233 |
|
---|
[c6cb3aa] | 234 | <varlistentry>
|
---|
| 235 | <term id="pod2text"><command>pod2text</command></term>
|
---|
| 236 | <listitem>
|
---|
[673b0d8] | 237 | <indexterm zone="ch-system-perl pod2text"><primary sortas="b-pod2text">pod2text</primary></indexterm>
|
---|
[c6cb3aa] | 238 | <para>converts pod data to formatted ASCII text.</para>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
[673b0d8] | 241 |
|
---|
[c6cb3aa] | 242 | <varlistentry>
|
---|
| 243 | <term id="pod2usage"><command>pod2usage</command></term>
|
---|
| 244 | <listitem>
|
---|
[673b0d8] | 245 | <indexterm zone="ch-system-perl pod2usage"><primary sortas="b-pod2usage">pod2usage</primary></indexterm>
|
---|
[c6cb3aa] | 246 | <para>prints usage messages from embedded pod docs in files.</para>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
[673b0d8] | 249 |
|
---|
[c6cb3aa] | 250 | <varlistentry>
|
---|
| 251 | <term id="podchecker"><command>podchecker</command></term>
|
---|
| 252 | <listitem>
|
---|
[673b0d8] | 253 | <indexterm zone="ch-system-perl podchecker"><primary sortas="b-podchecker">podchecker</primary></indexterm>
|
---|
[c6cb3aa] | 254 | <para>checks the syntax of pod format documentation files.</para>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
[673b0d8] | 257 |
|
---|
[c6cb3aa] | 258 | <varlistentry>
|
---|
| 259 | <term id="podselect"><command>podselect</command></term>
|
---|
| 260 | <listitem>
|
---|
[673b0d8] | 261 | <indexterm zone="ch-system-perl podselect"><primary sortas="b-podselect">podselect</primary></indexterm>
|
---|
[c6cb3aa] | 262 | <para>displays selected sections of pod documentation.</para>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
[673b0d8] | 265 |
|
---|
[c6cb3aa] | 266 | <varlistentry>
|
---|
| 267 | <term id="psed"><command>psed</command></term>
|
---|
| 268 | <listitem>
|
---|
[673b0d8] | 269 | <indexterm zone="ch-system-perl psed"><primary sortas="b-psed">psed</primary></indexterm>
|
---|
[c6cb3aa] | 270 | <para>is a Perl version of the stream editor <userinput>sed</userinput>.</para>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
[673b0d8] | 273 |
|
---|
[c6cb3aa] | 274 | <varlistentry>
|
---|
| 275 | <term id="pstruct"><command>pstruct</command></term>
|
---|
| 276 | <listitem>
|
---|
[673b0d8] | 277 | <indexterm zone="ch-system-perl pstruct"><primary sortas="b-pstruct">pstruct</primary></indexterm>
|
---|
[c6cb3aa] | 278 | <para>dumps C structures as generated from "cc -g -S" stabs.</para>
|
---|
| 279 | </listitem>
|
---|
| 280 | </varlistentry>
|
---|
[673b0d8] | 281 |
|
---|
[c6cb3aa] | 282 | <varlistentry>
|
---|
| 283 | <term id="s2p"><command>s2p</command></term>
|
---|
| 284 | <listitem>
|
---|
[673b0d8] | 285 | <indexterm zone="ch-system-perl s2p"><primary sortas="b-s2p">s2p</primary></indexterm>
|
---|
[c6cb3aa] | 286 | <para>translates sed to perl.</para>
|
---|
| 287 | </listitem>
|
---|
| 288 | </varlistentry>
|
---|
[673b0d8] | 289 |
|
---|
[c6cb3aa] | 290 | <varlistentry>
|
---|
| 291 | <term id="splain"><command>splain</command></term>
|
---|
| 292 | <listitem>
|
---|
[673b0d8] | 293 | <indexterm zone="ch-system-perl splain"><primary sortas="b-splain">splain</primary></indexterm>
|
---|
[c6cb3aa] | 294 | <para>is used to force verbose warning
|
---|
[673b0d8] | 295 | diagnostics in perl.</para>
|
---|
[c6cb3aa] | 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
[673b0d8] | 298 |
|
---|
[c6cb3aa] | 299 | <varlistentry>
|
---|
| 300 | <term id="xsubpp"><command>xsubpp</command></term>
|
---|
| 301 | <listitem>
|
---|
[673b0d8] | 302 | <indexterm zone="ch-system-perl xsubpp"><primary sortas="b-xsubpp">xsubpp</primary></indexterm>
|
---|
[c6cb3aa] | 303 | <para>converts Perl XS code into C code.</para>
|
---|
| 304 | </listitem>
|
---|
| 305 | </varlistentry>
|
---|
| 306 | </variablelist>
|
---|
[673b0d8] | 307 |
|
---|
| 308 | </sect2>
|
---|
| 309 |
|
---|
| 310 | </sect1>
|
---|