source: chapter08/perl.xml@ e06065f

11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng 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 e06065f was e06065f, checked in by Xi Ruoyao <xry111@…>, 21 months ago

perl: remove outdated note regarding zlib version

Now perl-5.36 ships zlib-1.2.12, which is same as the book providing.

  • Property mode set to 100644
File size: 18.4 KB
RevLine 
[fcc02767]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>
[fb386e0]34 <seg>&perl-fin-sbu;</seg>
35 <seg>&perl-fin-du;</seg>
[fcc02767]36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Perl</title>
[f7ac150]43<!--
[ac9f395]44 <para>First, apply a patch that fixes an issue highlighted by recent
45 versions of gdbm:</para>
46
47<screen><userinput remap="pre">patch -Np1 -i ../&perl-fix-patch;</userinput></screen>
[f7ac150]48-->
[d672ab7]49 <para>This version of Perl now builds the Compress::Raw::Zlib and
[fcc02767]50 Compress::Raw::BZip2 modules. By
51 default Perl will use an internal copy of the sources for the build.
52 Issue the following command so that Perl will use the libraries
53 installed on the system:</para>
54
55<screen><userinput remap="pre">export BUILD_ZLIB=False
56export BUILD_BZIP2=0</userinput></screen>
57
58 <para>To have full control over the way Perl is set up, you can remove the
59 <quote>-des</quote> options from the following command and hand-pick the way
60 this package is built. Alternatively, use the command exactly as below to
61 use the defaults that Perl auto-detects:</para>
62
[5a986cbf]63 <screen><userinput remap="configure">sh Configure -des \
64 -Dprefix=/usr \
65 -Dvendorprefix=/usr \
[6a06eaf]66 -Dprivlib=/usr/lib/perl5/&perl-version-min;/core_perl \
67 -Darchlib=/usr/lib/perl5/&perl-version-min;/core_perl \
68 -Dsitelib=/usr/lib/perl5/&perl-version-min;/site_perl \
69 -Dsitearch=/usr/lib/perl5/&perl-version-min;/site_perl \
70 -Dvendorlib=/usr/lib/perl5/&perl-version-min;/vendor_perl \
71 -Dvendorarch=/usr/lib/perl5/&perl-version-min;/vendor_perl \
[5a986cbf]72 -Dman1dir=/usr/share/man/man1 \
73 -Dman3dir=/usr/share/man/man3 \
74 -Dpager="/usr/bin/less -isR" \
75 -Duseshrplib \
76 -Dusethreads</userinput></screen>
[fcc02767]77
78 <variablelist>
79 <title>The meaning of the configure options:</title>
80
81 <varlistentry>
82 <term><parameter>-Dvendorprefix=/usr</parameter></term>
83 <listitem>
84 <para>This ensures <command>perl</command> knows how to
85 tell packages where they should install their perl modules.</para>
86 </listitem>
87 </varlistentry>
88
89 <varlistentry>
90 <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
91 <listitem>
[d672ab7]92 <para>This ensures that <userinput>less</userinput> is used instead
[fcc02767]93 of <userinput>more</userinput>.</para>
94 </listitem>
95 </varlistentry>
96
97 <varlistentry>
98 <term><parameter>-Dman1dir=/usr/share/man/man1
99 -Dman3dir=/usr/share/man/man3</parameter></term>
100 <listitem>
101 <para>Since Groff is not installed yet, <command>Configure</command>
102 thinks that we do not want man pages for Perl. Issuing these
103 parameters overrides this decision.</para>
104 </listitem>
105 </varlistentry>
106
107 <varlistentry>
108 <term><parameter>-Duseshrplib</parameter></term>
109 <listitem>
110 <para>Build a shared libperl needed by some perl modules.</para>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry>
115 <term><parameter>-Dusethreads</parameter></term>
116 <listitem>
117 <para>Build perl with support for threads.</para>
118 </listitem>
119 </varlistentry>
120
[5a986cbf]121 <varlistentry>
122 <term><parameter>-Dprivlib,-Darchlib,-Dsitelib,...</parameter></term>
123 <listitem>
124 <para>These settings define where Perl is looking for installed
125 modules. The LFS editors chose to put them in a directory structure
126 based on the Major.Minor version of Perl (&perl-version-min;) which
127 allows upgrading Perl to newer Patch levels (&perl-version;) without
128 the need to reinstall all of the modules again.</para>
129 </listitem>
130 </varlistentry>
131
[fcc02767]132 </variablelist>
133
134 <para>Compile the package:</para>
135
136<screen><userinput remap="make">make</userinput></screen>
137
138 <para>To test the results (approximately 11 SBU), issue:</para>
139
140<screen><userinput remap="test">make test</userinput></screen>
141
142 <para>Install the package and clean up:</para>
143
144<screen><userinput remap="install">make install
145unset BUILD_ZLIB BUILD_BZIP2</userinput></screen>
146
147 </sect2>
148
149 <sect2 id="contents-perl" role="content">
150 <title>Contents of Perl</title>
151
152 <segmentedlist>
153 <segtitle>Installed programs</segtitle>
154 <segtitle>Installed libraries</segtitle>
155 <segtitle>Installed directory</segtitle>
156
157 <seglistitem>
158 <seg>corelist, cpan, enc2xs, encguess, h2ph, h2xs, instmodsh,
159 json_pp, libnetcfg, perl, perl&perl-version; (hard link to perl),
160 perlbug, perldoc, perlivp, perlthanks (hard link to perlbug), piconv,
161 pl2pm, pod2html, pod2man, pod2text, pod2usage, podchecker, podselect,
162 prove, ptar, ptardiff, ptargrep, shasum,
163 splain, xsubpp, and zipdetails</seg>
164 <seg>Many which cannot all be listed here</seg>
165 <seg>/usr/lib/perl5</seg>
166 </seglistitem>
167 </segmentedlist>
168
169 <variablelist>
170 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
171 <?dbfo list-presentation="list"?>
172 <?dbhtml list-presentation="table"?>
173<!--
174 <varlistentry id="c2ph">
175 <term><command>c2ph</command></term>
176 <listitem>
177 <para>Dumps C structures as generated from
178 <command>cc -g -S</command></para>
179 <indexterm zone="ch-system-perl c2ph">
180 <primary sortas="b-c2ph">c2ph</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
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
206 <varlistentry id="enc2xs">
207 <term><command>enc2xs</command></term>
208 <listitem>
209 <para>Builds a Perl extension for the Encode module from either
210 Unicode Character Mappings or Tcl Encoding Files</para>
211 <indexterm zone="ch-system-perl enc2xs">
212 <primary sortas="b-enc2xs">enc2xs</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="encguess">
218 <term><command>encguess</command></term>
219 <listitem>
220 <para>Guess the encoding type of one or several files</para>
221 <indexterm zone="ch-system-perl encguess">
222 <primary sortas="b-encguess">encguess</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="h2ph">
228 <term><command>h2ph</command></term>
229 <listitem>
230 <para>Converts <filename class="extension">.h</filename> C header
231 files to <filename class="extension">.ph</filename> Perl header
232 files</para>
233 <indexterm zone="ch-system-perl h2ph">
234 <primary sortas="b-h2ph">h2ph</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="h2xs">
240 <term><command>h2xs</command></term>
241 <listitem>
242 <para>Converts <filename class="extension">.h</filename> C header
243 files to Perl extensions</para>
244 <indexterm zone="ch-system-perl h2xs">
245 <primary sortas="b-h2xs">h2xs</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="instmodsh">
251 <term><command>instmodsh</command></term>
252 <listitem>
253 <para>Shell script for examining installed Perl modules,
254 and can create a tarball from an installed module</para>
255 <indexterm zone="ch-system-perl instmodsh">
256 <primary sortas="b-instmodsh">instmodsh</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="json_pp">
262 <term><command>json_pp</command></term>
263 <listitem>
264 <para>Converts data between certain input and output formats</para>
265 <indexterm zone="ch-system-perl json_pp">
266 <primary sortas="b-json_pp">json_pp</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="libnetcfg">
272 <term><command>libnetcfg</command></term>
273 <listitem>
274 <para>Can be used to configure the
275 <filename class="libraryfile">libnet</filename> Perl module</para>
276 <indexterm zone="ch-system-perl libnetcfg">
277 <primary sortas="b-libnetcfg">libnetcfg</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="perl">
283 <term><command>perl</command></term>
284 <listitem>
285 <para>Combines some of the best features of C, <command>sed</command>,
286 <command>awk</command> and <command>sh</command> into a single
287 swiss-army language</para>
288 <indexterm zone="ch-system-perl perl">
289 <primary sortas="b-perl">perl</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="perl-version">
295 <term><command>perl&perl-version;</command></term>
296 <listitem>
297 <para>A hard link to <command>perl</command></para>
298 <indexterm zone="ch-system-perl perl-version">
299 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="perlbug">
305 <term><command>perlbug</command></term>
306 <listitem>
307 <para>Used to generate bug reports about Perl, or the modules that come
308 with it, and mail them</para>
309 <indexterm zone="ch-system-perl perlbug">
310 <primary sortas="b-perlbug">perlbug</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry id="perldoc">
316 <term><command>perldoc</command></term>
317 <listitem>
318 <para>Displays a piece of documentation in pod format that is embedded
319 in the Perl installation tree or in a Perl script</para>
320 <indexterm zone="ch-system-perl perldoc">
321 <primary sortas="b-perldoc">perldoc</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="perlivp">
327 <term><command>perlivp</command></term>
328 <listitem>
329 <para>The Perl Installation Verification Procedure; it can be used to
330 verify that Perl and its libraries have been installed
331 correctly</para>
332 <indexterm zone="ch-system-perl perlivp">
333 <primary sortas="b-perlivp">perlivp</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="perlthanks">
339 <term><command>perlthanks</command></term>
340 <listitem>
341 <para>Used to generate thank you messages to mail to the Perl
342 developers</para>
343 <indexterm zone="ch-system-perl perlthanks">
344 <primary sortas="b-perlthanks">perlthanks</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
349 <varlistentry id="piconv">
350 <term><command>piconv</command></term>
351 <listitem>
352 <para>A Perl version of the character encoding converter
353 <command>iconv</command></para>
354 <indexterm zone="ch-system-perl piconv">
355 <primary sortas="b-piconv">piconv</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
360 <varlistentry id="pl2pm">
361 <term><command>pl2pm</command></term>
362 <listitem>
363 <para>A rough tool for converting Perl4
364 <filename class="extension">.pl</filename> files to Perl5
365 <filename class="extension">.pm</filename> modules</para>
366 <indexterm zone="ch-system-perl pl2pm">
367 <primary sortas="b-pl2pm">pl2pm</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="pod2html">
373 <term><command>pod2html</command></term>
374 <listitem>
375 <para>Converts files from pod format to HTML format</para>
376 <indexterm zone="ch-system-perl pod2html">
377 <primary sortas="b-pod2html">pod2html</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="pod2man">
383 <term><command>pod2man</command></term>
384 <listitem>
385 <para>Converts pod data to formatted *roff input</para>
386 <indexterm zone="ch-system-perl pod2man">
387 <primary sortas="b-pod2man">pod2man</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="pod2text">
393 <term><command>pod2text</command></term>
394 <listitem>
395 <para>Converts pod data to formatted ASCII text</para>
396 <indexterm zone="ch-system-perl pod2text">
397 <primary sortas="b-pod2text">pod2text</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="pod2usage">
403 <term><command>pod2usage</command></term>
404 <listitem>
405 <para>Prints usage messages from embedded pod docs in files</para>
406 <indexterm zone="ch-system-perl pod2usage">
407 <primary sortas="b-pod2usage">pod2usage</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="podchecker">
413 <term><command>podchecker</command></term>
414 <listitem>
415 <para>Checks the syntax of pod format documentation files</para>
416 <indexterm zone="ch-system-perl podchecker">
417 <primary sortas="b-podchecker">podchecker</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="podselect">
423 <term><command>podselect</command></term>
424 <listitem>
425 <para>Displays selected sections of pod documentation</para>
426 <indexterm zone="ch-system-perl podselect">
427 <primary sortas="b-podselect">podselect</primary>
428 </indexterm>
429 </listitem>
430 </varlistentry>
431
432 <varlistentry id="prove">
433 <term><command>prove</command></term>
434 <listitem>
435 <para>Command line tool for running tests against the Test::Harness
436 module</para>
437 <indexterm zone="ch-system-perl prove">
438 <primary sortas="b-prove">prove</primary>
439 </indexterm>
440 </listitem>
441 </varlistentry>
442<!--
443 <varlistentry id="pstruct">
444 <term><command>pstruct</command></term>
445 <listitem>
446 <para>Dumps C structures as generated from <command>cc -g -S</command>
447 stabs</para>
448 <indexterm zone="ch-system-perl pstruct">
449 <primary sortas="b-pstruct">pstruct</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453-->
454 <varlistentry id="ptar">
455 <term><command>ptar</command></term>
456 <listitem>
457 <para>A <command>tar</command>-like program written in Perl</para>
458 <indexterm zone="ch-system-perl ptar">
459 <primary sortas="b-ptar">ptar</primary>
460 </indexterm>
461 </listitem>
462 </varlistentry>
463
464 <varlistentry id="ptardiff">
465 <term><command>ptardiff</command></term>
466 <listitem>
467 <para>A Perl program that compares an extracted archive with an
468 unextracted one</para>
469 <indexterm zone="ch-system-perl ptardiff">
470 <primary sortas="b-ptardiff">ptardiff</primary>
471 </indexterm>
472 </listitem>
473 </varlistentry>
474
475 <varlistentry id="ptargrep">
476 <term><command>ptargrep</command></term>
477 <listitem>
478 <para>A Perl program that applies pattern matching to the contents
479 of files in a tar archive</para>
480 <indexterm zone="ch-system-perl ptargrep">
481 <primary sortas="b-ptargrep">ptargrep</primary>
482 </indexterm>
483 </listitem>
484 </varlistentry>
485
486 <varlistentry id="shasum">
487 <term><command>shasum</command></term>
488 <listitem>
489 <para>Prints or checks SHA checksums</para>
490 <indexterm zone="ch-system-perl shasum">
491 <primary sortas="b-shasum">shasum</primary>
492 </indexterm>
493 </listitem>
494 </varlistentry>
495
496 <varlistentry id="splain">
497 <term><command>splain</command></term>
498 <listitem>
499 <para>Is used to force verbose warning diagnostics in Perl</para>
500 <indexterm zone="ch-system-perl splain">
501 <primary sortas="b-splain">splain</primary>
502 </indexterm>
503 </listitem>
504 </varlistentry>
505
506 <varlistentry id="xsubpp">
507 <term><command>xsubpp</command></term>
508 <listitem>
509 <para>Converts Perl XS code into C code</para>
510 <indexterm zone="ch-system-perl xsubpp">
511 <primary sortas="b-xsubpp">xsubpp</primary>
512 </indexterm>
513 </listitem>
514 </varlistentry>
515
516 <varlistentry id="zipdetails">
517 <term><command>zipdetails</command></term>
518 <listitem>
519 <para>Displays details about the internal structure of a Zip file</para>
520 <indexterm zone="ch-system-perl zipdetails">
521 <primary sortas="b-zipdetails">zipdetails</primary>
522 </indexterm>
523 </listitem>
524 </varlistentry>
525
526 </variablelist>
527
528 </sect2>
529
530</sect1>
Note: See TracBrowser for help on using the repository browser.