1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
8 <sect1 id="ch-system-perl" role="wrap">
9 <?dbhtml filename="perl.html"?>
11 <sect1info condition="script">
12 <productname>perl</productname>
13 <productnumber>&perl-version;</productnumber>
14 <address>&perl-url;</address>
17 <title>Perl-&perl-version;</title>
19 <indexterm zone="ch-system-perl">
20 <primary sortas="a-Perl">Perl</primary>
23 <sect2 role="package">
26 <para>The Perl package contains the Practical Extraction and Report
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
34 <seg>&perl-ch6-sbu;</seg>
35 <seg>&perl-ch6-du;</seg>
41 <sect2 role="installation">
42 <title>Installation of Perl</title>
44 <para>First create a basic <filename>/etc/hosts</filename> file to be
45 referenced in one of Perl's configuration files as well as the optional
48 <screen><userinput remap="pre">echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen>
50 <para>This version of Perl now builds the Compress::Raw::Zlib and
51 Compress::Raw::BZip2 modules. By
52 default Perl will use an internal copy of the sources for the build.
53 Issue the following command so that Perl will use the libraries
54 installed on the system:</para>
56 <screen><userinput remap="pre">export BUILD_ZLIB=False
57 export BUILD_BZIP2=0</userinput></screen>
59 <para>Apply a patch to allow the Errno.pm module and the h2ph
60 program to build correctly when building with GCC 5:</para>
62 <screen><userinput remap="pre">patch -Np1 -i ../&perl-gcc5-fixes-patch;</userinput></screen>
64 <para>To have full control over the way Perl is set up, you can remove the
65 <quote>-des</quote> options from the following command and hand-pick the way
66 this package is built. Alternatively, use the command exactly as below to
67 use the defaults that Perl auto-detects:</para>
69 <screen><userinput remap="configure">sh Configure -des -Dprefix=/usr \
71 -Dman1dir=/usr/share/man/man1 \
72 -Dman3dir=/usr/share/man/man3 \
73 -Dpager="/usr/bin/less -isR" \
74 -Duseshrplib</userinput></screen>
77 <title>The meaning of the configure options:</title>
80 <term><parameter>-Dvendorprefix=/usr</parameter></term>
82 <para>This ensures <command>perl</command> knows how to
83 tell packages where they should install their perl modules.</para>
88 <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
90 <para>This ensures that <userinput>less</userinput> is used instead
91 of <userinput>more</userinput>.</para>
96 <term><parameter>-Dman1dir=/usr/share/man/man1
97 -Dman3dir=/usr/share/man/man3</parameter></term>
99 <para>Since Groff is not installed yet, <command>Configure</command>
100 thinks that we do not want man pages for Perl. Issuing these
101 parameters overrides this decision.</para>
106 <term><parameter>-Duseshrplib</parameter></term>
108 <para>Build a shared libperl needed by some perl modules.</para>
114 <para>Compile the package:</para>
116 <screen><userinput remap="make">make</userinput></screen>
118 <para>To test the results (approximately 2.5 SBU), issue:</para>
120 <screen><userinput remap="test">make -k test</userinput></screen>
122 <note><para>Several tests related to zlib will fail due to using
123 the system version of zlib instead of the internal version.</para></note>
125 <para>Install the package and clean up:</para>
127 <screen><userinput remap="install">make install
128 unset BUILD_ZLIB BUILD_BZIP2</userinput></screen>
132 <sect2 id="contents-perl" role="content">
133 <title>Contents of Perl</title>
136 <segtitle>Installed programs</segtitle>
137 <segtitle>Installed libraries</segtitle>
138 <segtitle>Installed directory</segtitle>
141 <seg>c2ph, corelist, cpan, enc2xs, encguess, h2ph, h2xs, instmodsh,
142 json_pp, libnetcfg, perl, perl&perl-version; (hard link to perl),
143 perlbug, perldoc, perlivp, perlthanks (hard link to perlbug), piconv,
144 pl2pm, pod2html, pod2man, pod2text, pod2usage, podchecker, podselect,
145 prove, pstruct (hard link to c2ph), ptar, ptardiff, ptargrep, shasum,
146 splain, xsubpp, and zipdetails</seg>
147 <seg>Many which cannot all be listed here</seg>
148 <seg>/usr/lib/perl5</seg>
153 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
154 <?dbfo list-presentation="list"?>
155 <?dbhtml list-presentation="table"?>
157 <varlistentry id="c2ph">
158 <term><command>c2ph</command></term>
160 <para>Dumps C structures as generated from
161 <command>cc -g -S</command></para>
162 <indexterm zone="ch-system-perl c2ph">
163 <primary sortas="b-c2ph">c2ph</primary>
168 <varlistentry id="corelist">
169 <term><command>corelist</command></term>
171 <para>A commandline frontend to Module::CoreList</para>
172 <indexterm zone="ch-system-perl corelist">
173 <primary sortas="b-corelist">corelist</primary>
178 <varlistentry id="cpan">
179 <term><command>cpan</command></term>
181 <para>Interact with the Comprehensive Perl Archive Network (CPAN)
182 from the command line</para>
183 <indexterm zone="ch-system-perl cpan">
184 <primary sortas="b-cpan">cpan</primary>
189 <varlistentry id="enc2xs">
190 <term><command>enc2xs</command></term>
192 <para>Builds a Perl extension for the Encode module from either
193 Unicode Character Mappings or Tcl Encoding Files</para>
194 <indexterm zone="ch-system-perl enc2xs">
195 <primary sortas="b-enc2xs">enc2xs</primary>
200 <varlistentry id="encguess">
201 <term><command>encguess</command></term>
203 <para>Guess the encoding type of one or several files</para>
204 <indexterm zone="ch-system-perl encguess">
205 <primary sortas="b-encguess">encguess</primary>
210 <varlistentry id="h2ph">
211 <term><command>h2ph</command></term>
213 <para>Converts <filename class="extension">.h</filename> C header
214 files to <filename class="extension">.ph</filename> Perl header
216 <indexterm zone="ch-system-perl h2ph">
217 <primary sortas="b-h2ph">h2ph</primary>
222 <varlistentry id="h2xs">
223 <term><command>h2xs</command></term>
225 <para>Converts <filename class="extension">.h</filename> C header
226 files to Perl extensions</para>
227 <indexterm zone="ch-system-perl h2xs">
228 <primary sortas="b-h2xs">h2xs</primary>
233 <varlistentry id="instmodsh">
234 <term><command>instmodsh</command></term>
236 <para>Shell script for examining installed Perl modules,
237 and can even create a tarball from an installed module</para>
238 <indexterm zone="ch-system-perl instmodsh">
239 <primary sortas="b-instmodsh">instmodsh</primary>
244 <varlistentry id="json_pp">
245 <term><command>json_pp</command></term>
247 <para>Converts data between certain input and output formats</para>
248 <indexterm zone="ch-system-perl json_pp">
249 <primary sortas="b-json_pp">json_pp</primary>
254 <varlistentry id="libnetcfg">
255 <term><command>libnetcfg</command></term>
257 <para>Can be used to configure the
258 <filename class="libraryfile">libnet</filename> Perl module</para>
259 <indexterm zone="ch-system-perl libnetcfg">
260 <primary sortas="b-libnetcfg">libnetcfg</primary>
265 <varlistentry id="perl">
266 <term><command>perl</command></term>
268 <para>Combines some of the best features of C, <command>sed</command>,
269 <command>awk</command> and <command>sh</command> into a single
270 swiss-army language</para>
271 <indexterm zone="ch-system-perl perl">
272 <primary sortas="b-perl">perl</primary>
277 <varlistentry id="perl-version">
278 <term><command>perl&perl-version;</command></term>
280 <para>A hard link to <command>perl</command></para>
281 <indexterm zone="ch-system-perl perl-version">
282 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
287 <varlistentry id="perlbug">
288 <term><command>perlbug</command></term>
290 <para>Used to generate bug reports about Perl, or the modules that come
291 with it, and mail them</para>
292 <indexterm zone="ch-system-perl perlbug">
293 <primary sortas="b-perlbug">perlbug</primary>
298 <varlistentry id="perldoc">
299 <term><command>perldoc</command></term>
301 <para>Displays a piece of documentation in pod format that is embedded
302 in the Perl installation tree or in a Perl script</para>
303 <indexterm zone="ch-system-perl perldoc">
304 <primary sortas="b-perldoc">perldoc</primary>
309 <varlistentry id="perlivp">
310 <term><command>perlivp</command></term>
312 <para>The Perl Installation Verification Procedure; it can be used to
313 verify that Perl and its libraries have been installed
315 <indexterm zone="ch-system-perl perlivp">
316 <primary sortas="b-perlivp">perlivp</primary>
321 <varlistentry id="perlthanks">
322 <term><command>perlthanks</command></term>
324 <para>Used to generate thank you messages to mail to the Perl
326 <indexterm zone="ch-system-perl perlthanks">
327 <primary sortas="b-perlthanks">perlthanks</primary>
332 <varlistentry id="piconv">
333 <term><command>piconv</command></term>
335 <para>A Perl version of the character encoding converter
336 <command>iconv</command></para>
337 <indexterm zone="ch-system-perl piconv">
338 <primary sortas="b-piconv">piconv</primary>
343 <varlistentry id="pl2pm">
344 <term><command>pl2pm</command></term>
346 <para>A rough tool for converting Perl4
347 <filename class="extension">.pl</filename> files to Perl5
348 <filename class="extension">.pm</filename> modules</para>
349 <indexterm zone="ch-system-perl pl2pm">
350 <primary sortas="b-pl2pm">pl2pm</primary>
355 <varlistentry id="pod2html">
356 <term><command>pod2html</command></term>
358 <para>Converts files from pod format to HTML format</para>
359 <indexterm zone="ch-system-perl pod2html">
360 <primary sortas="b-pod2html">pod2html</primary>
365 <varlistentry id="pod2man">
366 <term><command>pod2man</command></term>
368 <para>Converts pod data to formatted *roff input</para>
369 <indexterm zone="ch-system-perl pod2man">
370 <primary sortas="b-pod2man">pod2man</primary>
375 <varlistentry id="pod2text">
376 <term><command>pod2text</command></term>
378 <para>Converts pod data to formatted ASCII text</para>
379 <indexterm zone="ch-system-perl pod2text">
380 <primary sortas="b-pod2text">pod2text</primary>
385 <varlistentry id="pod2usage">
386 <term><command>pod2usage</command></term>
388 <para>Prints usage messages from embedded pod docs in files</para>
389 <indexterm zone="ch-system-perl pod2usage">
390 <primary sortas="b-pod2usage">pod2usage</primary>
395 <varlistentry id="podchecker">
396 <term><command>podchecker</command></term>
398 <para>Checks the syntax of pod format documentation files</para>
399 <indexterm zone="ch-system-perl podchecker">
400 <primary sortas="b-podchecker">podchecker</primary>
405 <varlistentry id="podselect">
406 <term><command>podselect</command></term>
408 <para>Displays selected sections of pod documentation</para>
409 <indexterm zone="ch-system-perl podselect">
410 <primary sortas="b-podselect">podselect</primary>
415 <varlistentry id="prove">
416 <term><command>prove</command></term>
418 <para>Command line tool for running tests against the Test::Harness
420 <indexterm zone="ch-system-perl prove">
421 <primary sortas="b-prove">prove</primary>
426 <varlistentry id="pstruct">
427 <term><command>pstruct</command></term>
429 <para>Dumps C structures as generated from <command>cc -g -S</command>
431 <indexterm zone="ch-system-perl pstruct">
432 <primary sortas="b-pstruct">pstruct</primary>
437 <varlistentry id="ptar">
438 <term><command>ptar</command></term>
440 <para>A <command>tar</command>-like program written in Perl</para>
441 <indexterm zone="ch-system-perl ptar">
442 <primary sortas="b-ptar">ptar</primary>
447 <varlistentry id="ptardiff">
448 <term><command>ptardiff</command></term>
450 <para>A Perl program that compares an extracted archive with an
451 unextracted one</para>
452 <indexterm zone="ch-system-perl ptardiff">
453 <primary sortas="b-ptardiff">ptardiff</primary>
458 <varlistentry id="ptargrep">
459 <term><command>ptargrep</command></term>
461 <para>A Perl program that applies pattern matching to the contents
462 of files in a tar archive</para>
463 <indexterm zone="ch-system-perl ptargrep">
464 <primary sortas="b-ptargrep">ptargrep</primary>
469 <varlistentry id="shasum">
470 <term><command>shasum</command></term>
472 <para>Prints or checks SHA checksums</para>
473 <indexterm zone="ch-system-perl shasum">
474 <primary sortas="b-shasum">shasum</primary>
479 <varlistentry id="splain">
480 <term><command>splain</command></term>
482 <para>Is used to force verbose warning diagnostics in Perl</para>
483 <indexterm zone="ch-system-perl splain">
484 <primary sortas="b-splain">splain</primary>
489 <varlistentry id="xsubpp">
490 <term><command>xsubpp</command></term>
492 <para>Converts Perl XS code into C code</para>
493 <indexterm zone="ch-system-perl xsubpp">
494 <primary sortas="b-xsubpp">xsubpp</primary>
499 <varlistentry id="zipdetails">
500 <term><command>zipdetails</command></term>
502 <para>Displays details about the internal structure of a Zip file</para>
503 <indexterm zone="ch-system-perl zipdetails">
504 <primary sortas="b-zipdetails">zipdetails</primary>