source: chapter06/perl.xml@ ed0bb05

7.8-systemd 7.9-systemd
Last change on this file since ed0bb05 was ed0bb05, checked in by Krejzi <krejzi@…>, 9 years ago

Imported trunk.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd@10920 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 20.3 KB
Line 
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">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-perl" role="wrap">
9 <?dbhtml filename="perl.html"?>
10
11 <sect1info condition="script">
12 <productname>perl</productname>
13 <productnumber>&perl-version;</productnumber>
14 <address>&perl-url;</address>
15 </sect1info>
16
17 <title>Perl-&perl-version;</title>
18
19 <indexterm zone="ch-system-perl">
20 <primary sortas="a-Perl">Perl</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Perl package contains the Practical Extraction and Report
27 Language.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&perl-ch6-sbu;</seg>
35 <seg>&perl-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Perl</title>
43
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
46 test suite:</para>
47
48<screen><userinput remap="pre">echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
49
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>
55
56<screen><userinput remap="pre">export BUILD_ZLIB=False
57export BUILD_BZIP2=0</userinput></screen>
58<!--
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>
61
62<screen><userinput remap="pre">patch -Np1 -i ../&perl-gcc5-fixes-patch;</userinput></screen>
63-->
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>
68
69<screen><userinput remap="configure">sh Configure -des -Dprefix=/usr \
70 -Dvendorprefix=/usr \
71 -Dman1dir=/usr/share/man/man1 \
72 -Dman3dir=/usr/share/man/man3 \
73 -Dpager="/usr/bin/less -isR" \
74 -Duseshrplib</userinput></screen>
75
76 <variablelist>
77 <title>The meaning of the configure options:</title>
78
79 <varlistentry>
80 <term><parameter>-Dvendorprefix=/usr</parameter></term>
81 <listitem>
82 <para>This ensures <command>perl</command> knows how to
83 tell packages where they should install their perl modules.</para>
84 </listitem>
85 </varlistentry>
86
87 <varlistentry>
88 <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
89 <listitem>
90 <para>This ensures that <userinput>less</userinput> is used instead
91 of <userinput>more</userinput>.</para>
92 </listitem>
93 </varlistentry>
94
95 <varlistentry>
96 <term><parameter>-Dman1dir=/usr/share/man/man1
97 -Dman3dir=/usr/share/man/man3</parameter></term>
98 <listitem>
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>
102 </listitem>
103 </varlistentry>
104
105 <varlistentry>
106 <term><parameter>-Duseshrplib</parameter></term>
107 <listitem>
108 <para>Build a shared libperl needed by some perl modules.</para>
109 </listitem>
110 </varlistentry>
111
112 </variablelist>
113
114 <para>Compile the package:</para>
115
116<screen><userinput remap="make">make</userinput></screen>
117
118 <para>To test the results (approximately 2.5 SBU), issue:</para>
119
120<screen><userinput remap="test">make -k test</userinput></screen>
121
122 <para>Install the package and clean up:</para>
123
124<screen><userinput remap="install">make install
125unset BUILD_ZLIB BUILD_BZIP2</userinput></screen>
126
127 </sect2>
128
129 <sect2 id="contents-perl" role="content">
130 <title>Contents of Perl</title>
131
132 <segmentedlist>
133 <segtitle>Installed programs</segtitle>
134 <segtitle>Installed libraries</segtitle>
135 <segtitle>Installed directory</segtitle>
136
137 <seglistitem>
138 <seg>a2p, c2ph, config_data, corelist, cpan, cpan2dist, cpanp,
139 cpanp-run-perl, enc2xs, find2perl, h2ph, h2xs,
140 instmodsh, json_pp, libnetcfg, perl, perl&perl-version; (link to perl),
141 perlbug, perldoc, perlivp, perlthanks (link to perlbug), piconv, pl2pm,
142 pod2html, pod2latex, pod2man, pod2text, pod2usage, podchecker,
143 podselect, prove, psed (link to s2p), pstruct (link to c2ph), ptar,
144 ptardiff, ptargrep, s2p, shasum, splain, xsubpp, and zipdetails</seg>
145 <seg>Several hundred which cannot all be listed here</seg>
146 <seg>/usr/lib/perl5</seg>
147 </seglistitem>
148 </segmentedlist>
149
150 <variablelist>
151 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
152 <?dbfo list-presentation="list"?>
153 <?dbhtml list-presentation="table"?>
154
155 <varlistentry id="a2p">
156 <term><command>a2p</command></term>
157 <listitem>
158 <para>Translates awk to Perl</para>
159 <indexterm zone="ch-system-perl a2p">
160 <primary sortas="b-a2p">a2p</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
165 <varlistentry id="c2ph">
166 <term><command>c2ph</command></term>
167 <listitem>
168 <para>Dumps C structures as generated from
169 <command>cc -g -S</command></para>
170 <indexterm zone="ch-system-perl c2ph">
171 <primary sortas="b-c2ph">c2ph</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="config_data">
177 <term><command>config_data</command></term>
178 <listitem>
179 <para>Queries or changes configuration of Perl modules</para>
180 <indexterm zone="ch-system-perl config_data">
181 <primary sortas="b-config_data">config_data</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="corelist">
187 <term><command>corelist</command></term>
188 <listitem>
189 <para>A commandline frontend to Module::CoreList</para>
190 <indexterm zone="ch-system-perl corelist">
191 <primary sortas="b-corelist">corelist</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="cpan">
197 <term><command>cpan</command></term>
198 <listitem>
199 <para>Interact with the Comprehensive Perl Archive Network (CPAN)
200 from the command line</para>
201 <indexterm zone="ch-system-perl cpan">
202 <primary sortas="b-cpan">cpan</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="cpan2dist">
208 <term><command>cpan2dist</command></term>
209 <listitem>
210 <para>The CPANPLUS distribution creator</para>
211 <indexterm zone="ch-system-perl cpan2dist">
212 <primary sortas="b-cpan2dist">cpan2dist</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="cpanp">
218 <term><command>cpanp</command></term>
219 <listitem>
220 <para>The CPANPLUS launcher</para>
221 <indexterm zone="ch-system-perl cpanp">
222 <primary sortas="b-cpanp">cpanp</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="cpanp-run-perl">
228 <term><command>cpanp-run-perl</command></term>
229 <listitem>
230 <para>Perl script that is used to enable flushing of the output
231 buffer after each write in spawned processes</para>
232 <indexterm zone="ch-system-perl cpanp-run-perl">
233 <primary sortas="b-cpanp-run-perl">cpanp-run-perl</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 <varlistentry id="enc2xs">
239 <term><command>enc2xs</command></term>
240 <listitem>
241 <para>Builds a Perl extension for the Encode module from either
242 Unicode Character Mappings or Tcl Encoding Files</para>
243 <indexterm zone="ch-system-perl enc2xs">
244 <primary sortas="b-enc2xs">enc2xs</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id="find2perl">
250 <term><command>find2perl</command></term>
251 <listitem>
252 <para>Translates <command>find</command> commands to Perl</para>
253 <indexterm zone="ch-system-perl find2perl">
254 <primary sortas="b-find2perl">find2perl</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="h2ph">
260 <term><command>h2ph</command></term>
261 <listitem>
262 <para>Converts <filename class="extension">.h</filename> C header
263 files to <filename class="extension">.ph</filename> Perl header
264 files</para>
265 <indexterm zone="ch-system-perl h2ph">
266 <primary sortas="b-h2ph">h2ph</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="h2xs">
272 <term><command>h2xs</command></term>
273 <listitem>
274 <para>Converts <filename class="extension">.h</filename> C header
275 files to Perl extensions</para>
276 <indexterm zone="ch-system-perl h2xs">
277 <primary sortas="b-h2xs">h2xs</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="instmodsh">
283 <term><command>instmodsh</command></term>
284 <listitem>
285 <para>Shell script for examining installed Perl modules,
286 and can even create a tarball from an installed module</para>
287 <indexterm zone="ch-system-perl instmodsh">
288 <primary sortas="b-instmodsh">instmodsh</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="json_pp">
294 <term><command>json_pp</command></term>
295 <listitem>
296 <para>Converts data between certain input and output formats</para>
297 <indexterm zone="ch-system-perl json_pp">
298 <primary sortas="b-json_pp">json_pp</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="libnetcfg">
304 <term><command>libnetcfg</command></term>
305 <listitem>
306 <para>Can be used to configure the
307 <filename class="libraryfile">libnet</filename> Perl module</para>
308 <indexterm zone="ch-system-perl libnetcfg">
309 <primary sortas="b-libnetcfg">libnetcfg</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="perl">
315 <term><command>perl</command></term>
316 <listitem>
317 <para>Combines some of the best features of C, <command>sed</command>,
318 <command>awk</command> and <command>sh</command> into a single
319 swiss-army language</para>
320 <indexterm zone="ch-system-perl perl">
321 <primary sortas="b-perl">perl</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="perl-version">
327 <term><command>perl&perl-version;</command></term>
328 <listitem>
329 <para>A hard link to <command>perl</command></para>
330 <indexterm zone="ch-system-perl perl-version">
331 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
336 <varlistentry id="perlbug">
337 <term><command>perlbug</command></term>
338 <listitem>
339 <para>Used to generate bug reports about Perl, or the modules that come
340 with it, and mail them</para>
341 <indexterm zone="ch-system-perl perlbug">
342 <primary sortas="b-perlbug">perlbug</primary>
343 </indexterm>
344 </listitem>
345 </varlistentry>
346
347 <varlistentry id="perldoc">
348 <term><command>perldoc</command></term>
349 <listitem>
350 <para>Displays a piece of documentation in pod format that is embedded
351 in the Perl installation tree or in a Perl script</para>
352 <indexterm zone="ch-system-perl perldoc">
353 <primary sortas="b-perldoc">perldoc</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 <varlistentry id="perlivp">
359 <term><command>perlivp</command></term>
360 <listitem>
361 <para>The Perl Installation Verification Procedure; it can be used to
362 verify that Perl and its libraries have been installed
363 correctly</para>
364 <indexterm zone="ch-system-perl perlivp">
365 <primary sortas="b-perlivp">perlivp</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
370 <varlistentry id="perlthanks">
371 <term><command>perlthanks</command></term>
372 <listitem>
373 <para>Used to generate thank you messages to mail to the Perl
374 developers</para>
375 <indexterm zone="ch-system-perl perlthanks">
376 <primary sortas="b-perlthanks">perlthanks</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="piconv">
382 <term><command>piconv</command></term>
383 <listitem>
384 <para>A Perl version of the character encoding converter
385 <command>iconv</command></para>
386 <indexterm zone="ch-system-perl piconv">
387 <primary sortas="b-piconv">piconv</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="pl2pm">
393 <term><command>pl2pm</command></term>
394 <listitem>
395 <para>A rough tool for converting Perl4
396 <filename class="extension">.pl</filename> files to Perl5
397 <filename class="extension">.pm</filename> modules</para>
398 <indexterm zone="ch-system-perl pl2pm">
399 <primary sortas="b-pl2pm">pl2pm</primary>
400 </indexterm>
401 </listitem>
402 </varlistentry>
403
404 <varlistentry id="pod2html">
405 <term><command>pod2html</command></term>
406 <listitem>
407 <para>Converts files from pod format to HTML format</para>
408 <indexterm zone="ch-system-perl pod2html">
409 <primary sortas="b-pod2html">pod2html</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="pod2latex">
415 <term><command>pod2latex</command></term>
416 <listitem>
417 <para>Converts files from pod format to LaTeX format</para>
418 <indexterm zone="ch-system-perl pod2latex">
419 <primary sortas="b-pod2latex">pod2latex</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
424 <varlistentry id="pod2man">
425 <term><command>pod2man</command></term>
426 <listitem>
427 <para>Converts pod data to formatted *roff input</para>
428 <indexterm zone="ch-system-perl pod2man">
429 <primary sortas="b-pod2man">pod2man</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 <varlistentry id="pod2text">
435 <term><command>pod2text</command></term>
436 <listitem>
437 <para>Converts pod data to formatted ASCII text</para>
438 <indexterm zone="ch-system-perl pod2text">
439 <primary sortas="b-pod2text">pod2text</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
444 <varlistentry id="pod2usage">
445 <term><command>pod2usage</command></term>
446 <listitem>
447 <para>Prints usage messages from embedded pod docs in files</para>
448 <indexterm zone="ch-system-perl pod2usage">
449 <primary sortas="b-pod2usage">pod2usage</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453
454 <varlistentry id="podchecker">
455 <term><command>podchecker</command></term>
456 <listitem>
457 <para>Checks the syntax of pod format documentation files</para>
458 <indexterm zone="ch-system-perl podchecker">
459 <primary sortas="b-podchecker">podchecker</primary>
460 </indexterm>
461 </listitem>
462 </varlistentry>
463
464 <varlistentry id="podselect">
465 <term><command>podselect</command></term>
466 <listitem>
467 <para>Displays selected sections of pod documentation</para>
468 <indexterm zone="ch-system-perl podselect">
469 <primary sortas="b-podselect">podselect</primary>
470 </indexterm>
471 </listitem>
472 </varlistentry>
473
474 <varlistentry id="prove">
475 <term><command>prove</command></term>
476 <listitem>
477 <para>Command line tool for running tests against the Test::Harness
478 module</para>
479 <indexterm zone="ch-system-perl prove">
480 <primary sortas="b-prove">prove</primary>
481 </indexterm>
482 </listitem>
483 </varlistentry>
484
485 <varlistentry id="psed">
486 <term><command>psed</command></term>
487 <listitem>
488 <para>A Perl version of the stream editor <command>sed</command></para>
489 <indexterm zone="ch-system-perl psed">
490 <primary sortas="b-psed">psed</primary>
491 </indexterm>
492 </listitem>
493 </varlistentry>
494
495 <varlistentry id="pstruct">
496 <term><command>pstruct</command></term>
497 <listitem>
498 <para>Dumps C structures as generated from <command>cc -g -S</command>
499 stabs</para>
500 <indexterm zone="ch-system-perl pstruct">
501 <primary sortas="b-pstruct">pstruct</primary>
502 </indexterm>
503 </listitem>
504 </varlistentry>
505
506 <varlistentry id="ptar">
507 <term><command>ptar</command></term>
508 <listitem>
509 <para>A <command>tar</command>-like program written in Perl</para>
510 <indexterm zone="ch-system-perl ptar">
511 <primary sortas="b-ptar">ptar</primary>
512 </indexterm>
513 </listitem>
514 </varlistentry>
515
516 <varlistentry id="ptardiff">
517 <term><command>ptardiff</command></term>
518 <listitem>
519 <para>A Perl program that compares an extracted archive with an
520 unextracted one</para>
521 <indexterm zone="ch-system-perl ptardiff">
522 <primary sortas="b-ptardiff">ptardiff</primary>
523 </indexterm>
524 </listitem>
525 </varlistentry>
526
527 <varlistentry id="ptargrep">
528 <term><command>ptargrep</command></term>
529 <listitem>
530 <para>A Perl program that applies pattern matching to the contents
531 of files in a tar archive</para>
532 <indexterm zone="ch-system-perl ptargrep">
533 <primary sortas="b-ptargrep">ptargrep</primary>
534 </indexterm>
535 </listitem>
536 </varlistentry>
537
538 <varlistentry id="s2p">
539 <term><command>s2p</command></term>
540 <listitem>
541 <para>Translates <command>sed</command> scripts to Perl</para>
542 <indexterm zone="ch-system-perl s2p">
543 <primary sortas="b-s2p">s2p</primary>
544 </indexterm>
545 </listitem>
546 </varlistentry>
547
548 <varlistentry id="shasum">
549 <term><command>shasum</command></term>
550 <listitem>
551 <para>Prints or checks SHA checksums</para>
552 <indexterm zone="ch-system-perl shasum">
553 <primary sortas="b-shasum">shasum</primary>
554 </indexterm>
555 </listitem>
556 </varlistentry>
557
558 <varlistentry id="splain">
559 <term><command>splain</command></term>
560 <listitem>
561 <para>Is used to force verbose warning diagnostics in Perl</para>
562 <indexterm zone="ch-system-perl splain">
563 <primary sortas="b-splain">splain</primary>
564 </indexterm>
565 </listitem>
566 </varlistentry>
567
568 <varlistentry id="xsubpp">
569 <term><command>xsubpp</command></term>
570 <listitem>
571 <para>Converts Perl XS code into C code</para>
572 <indexterm zone="ch-system-perl xsubpp">
573 <primary sortas="b-xsubpp">xsubpp</primary>
574 </indexterm>
575 </listitem>
576 </varlistentry>
577
578 <varlistentry id="zipdetails">
579 <term><command>zipdetails</command></term>
580 <listitem>
581 <para>Displays details about the internal structure of a Zip file</para>
582 <indexterm zone="ch-system-perl zipdetails">
583 <primary sortas="b-zipdetails">zipdetails</primary>
584 </indexterm>
585 </listitem>
586 </varlistentry>
587
588 </variablelist>
589
590 </sect2>
591
592</sect1>
Note: See TracBrowser for help on using the repository browser.