source: chapter06/perl.xml@ 7b1923d

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 7b1923d was 7b1923d, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to linux-3.19.
Update to iproute2-3.19.0.
Update to perl-5.20.2.
Update to libtool-2.4.6.
Added a note to glibc about potential problems with parallel build.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10846 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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