source: chapter08/perl.xml@ 6f4ac82b

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 6f4ac82b was 62b6686, checked in by Bruce Dubbs <bdubbs@…>, 2 years ago

Package updates.
Update to libcap-2.64.
Update to linux-5.17.3.
Update to gzip-1.12.

  • Property mode set to 100644
File size: 18.6 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-fin-sbu;</seg>
35 <seg>&perl-fin-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Perl</title>
43<!--
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>
48-->
49 <para>This version of Perl now builds the Compress::Raw::Zlib and
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
63 <screen><userinput remap="configure">sh Configure -des \
64 -Dprefix=/usr \
65 -Dvendorprefix=/usr \
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 \
72 -Dman1dir=/usr/share/man/man1 \
73 -Dman3dir=/usr/share/man/man3 \
74 -Dpager="/usr/bin/less -isR" \
75 -Duseshrplib \
76 -Dusethreads</userinput></screen>
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>
92 <para>This ensures that <userinput>less</userinput> is used instead
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
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
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 <note>
143 <para>Nine tests fail due to using the most recent version of zlib.</para>
144 </note>
145
146 <para>Install the package and clean up:</para>
147
148<screen><userinput remap="install">make install
149unset BUILD_ZLIB BUILD_BZIP2</userinput></screen>
150
151 </sect2>
152
153 <sect2 id="contents-perl" role="content">
154 <title>Contents of Perl</title>
155
156 <segmentedlist>
157 <segtitle>Installed programs</segtitle>
158 <segtitle>Installed libraries</segtitle>
159 <segtitle>Installed directory</segtitle>
160
161 <seglistitem>
162 <seg>corelist, cpan, enc2xs, encguess, h2ph, h2xs, instmodsh,
163 json_pp, libnetcfg, perl, perl&perl-version; (hard link to perl),
164 perlbug, perldoc, perlivp, perlthanks (hard link to perlbug), piconv,
165 pl2pm, pod2html, pod2man, pod2text, pod2usage, podchecker, podselect,
166 prove, ptar, ptardiff, ptargrep, shasum,
167 splain, xsubpp, and zipdetails</seg>
168 <seg>Many which cannot all be listed here</seg>
169 <seg>/usr/lib/perl5</seg>
170 </seglistitem>
171 </segmentedlist>
172
173 <variablelist>
174 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
175 <?dbfo list-presentation="list"?>
176 <?dbhtml list-presentation="table"?>
177<!--
178 <varlistentry id="c2ph">
179 <term><command>c2ph</command></term>
180 <listitem>
181 <para>Dumps C structures as generated from
182 <command>cc -g -S</command></para>
183 <indexterm zone="ch-system-perl c2ph">
184 <primary sortas="b-c2ph">c2ph</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188-->
189 <varlistentry id="corelist">
190 <term><command>corelist</command></term>
191 <listitem>
192 <para>A commandline frontend to Module::CoreList</para>
193 <indexterm zone="ch-system-perl corelist">
194 <primary sortas="b-corelist">corelist</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="cpan">
200 <term><command>cpan</command></term>
201 <listitem>
202 <para>Interact with the Comprehensive Perl Archive Network (CPAN)
203 from the command line</para>
204 <indexterm zone="ch-system-perl cpan">
205 <primary sortas="b-cpan">cpan</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="enc2xs">
211 <term><command>enc2xs</command></term>
212 <listitem>
213 <para>Builds a Perl extension for the Encode module from either
214 Unicode Character Mappings or Tcl Encoding Files</para>
215 <indexterm zone="ch-system-perl enc2xs">
216 <primary sortas="b-enc2xs">enc2xs</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="encguess">
222 <term><command>encguess</command></term>
223 <listitem>
224 <para>Guess the encoding type of one or several files</para>
225 <indexterm zone="ch-system-perl encguess">
226 <primary sortas="b-encguess">encguess</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="h2ph">
232 <term><command>h2ph</command></term>
233 <listitem>
234 <para>Converts <filename class="extension">.h</filename> C header
235 files to <filename class="extension">.ph</filename> Perl header
236 files</para>
237 <indexterm zone="ch-system-perl h2ph">
238 <primary sortas="b-h2ph">h2ph</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="h2xs">
244 <term><command>h2xs</command></term>
245 <listitem>
246 <para>Converts <filename class="extension">.h</filename> C header
247 files to Perl extensions</para>
248 <indexterm zone="ch-system-perl h2xs">
249 <primary sortas="b-h2xs">h2xs</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="instmodsh">
255 <term><command>instmodsh</command></term>
256 <listitem>
257 <para>Shell script for examining installed Perl modules,
258 and can create a tarball from an installed module</para>
259 <indexterm zone="ch-system-perl instmodsh">
260 <primary sortas="b-instmodsh">instmodsh</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="json_pp">
266 <term><command>json_pp</command></term>
267 <listitem>
268 <para>Converts data between certain input and output formats</para>
269 <indexterm zone="ch-system-perl json_pp">
270 <primary sortas="b-json_pp">json_pp</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="libnetcfg">
276 <term><command>libnetcfg</command></term>
277 <listitem>
278 <para>Can be used to configure the
279 <filename class="libraryfile">libnet</filename> Perl module</para>
280 <indexterm zone="ch-system-perl libnetcfg">
281 <primary sortas="b-libnetcfg">libnetcfg</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="perl">
287 <term><command>perl</command></term>
288 <listitem>
289 <para>Combines some of the best features of C, <command>sed</command>,
290 <command>awk</command> and <command>sh</command> into a single
291 swiss-army language</para>
292 <indexterm zone="ch-system-perl perl">
293 <primary sortas="b-perl">perl</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 <varlistentry id="perl-version">
299 <term><command>perl&perl-version;</command></term>
300 <listitem>
301 <para>A hard link to <command>perl</command></para>
302 <indexterm zone="ch-system-perl perl-version">
303 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="perlbug">
309 <term><command>perlbug</command></term>
310 <listitem>
311 <para>Used to generate bug reports about Perl, or the modules that come
312 with it, and mail them</para>
313 <indexterm zone="ch-system-perl perlbug">
314 <primary sortas="b-perlbug">perlbug</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="perldoc">
320 <term><command>perldoc</command></term>
321 <listitem>
322 <para>Displays a piece of documentation in pod format that is embedded
323 in the Perl installation tree or in a Perl script</para>
324 <indexterm zone="ch-system-perl perldoc">
325 <primary sortas="b-perldoc">perldoc</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="perlivp">
331 <term><command>perlivp</command></term>
332 <listitem>
333 <para>The Perl Installation Verification Procedure; it can be used to
334 verify that Perl and its libraries have been installed
335 correctly</para>
336 <indexterm zone="ch-system-perl perlivp">
337 <primary sortas="b-perlivp">perlivp</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 <varlistentry id="perlthanks">
343 <term><command>perlthanks</command></term>
344 <listitem>
345 <para>Used to generate thank you messages to mail to the Perl
346 developers</para>
347 <indexterm zone="ch-system-perl perlthanks">
348 <primary sortas="b-perlthanks">perlthanks</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="piconv">
354 <term><command>piconv</command></term>
355 <listitem>
356 <para>A Perl version of the character encoding converter
357 <command>iconv</command></para>
358 <indexterm zone="ch-system-perl piconv">
359 <primary sortas="b-piconv">piconv</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="pl2pm">
365 <term><command>pl2pm</command></term>
366 <listitem>
367 <para>A rough tool for converting Perl4
368 <filename class="extension">.pl</filename> files to Perl5
369 <filename class="extension">.pm</filename> modules</para>
370 <indexterm zone="ch-system-perl pl2pm">
371 <primary sortas="b-pl2pm">pl2pm</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376 <varlistentry id="pod2html">
377 <term><command>pod2html</command></term>
378 <listitem>
379 <para>Converts files from pod format to HTML format</para>
380 <indexterm zone="ch-system-perl pod2html">
381 <primary sortas="b-pod2html">pod2html</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
386 <varlistentry id="pod2man">
387 <term><command>pod2man</command></term>
388 <listitem>
389 <para>Converts pod data to formatted *roff input</para>
390 <indexterm zone="ch-system-perl pod2man">
391 <primary sortas="b-pod2man">pod2man</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
396 <varlistentry id="pod2text">
397 <term><command>pod2text</command></term>
398 <listitem>
399 <para>Converts pod data to formatted ASCII text</para>
400 <indexterm zone="ch-system-perl pod2text">
401 <primary sortas="b-pod2text">pod2text</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 <varlistentry id="pod2usage">
407 <term><command>pod2usage</command></term>
408 <listitem>
409 <para>Prints usage messages from embedded pod docs in files</para>
410 <indexterm zone="ch-system-perl pod2usage">
411 <primary sortas="b-pod2usage">pod2usage</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415
416 <varlistentry id="podchecker">
417 <term><command>podchecker</command></term>
418 <listitem>
419 <para>Checks the syntax of pod format documentation files</para>
420 <indexterm zone="ch-system-perl podchecker">
421 <primary sortas="b-podchecker">podchecker</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="podselect">
427 <term><command>podselect</command></term>
428 <listitem>
429 <para>Displays selected sections of pod documentation</para>
430 <indexterm zone="ch-system-perl podselect">
431 <primary sortas="b-podselect">podselect</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="prove">
437 <term><command>prove</command></term>
438 <listitem>
439 <para>Command line tool for running tests against the Test::Harness
440 module</para>
441 <indexterm zone="ch-system-perl prove">
442 <primary sortas="b-prove">prove</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446<!--
447 <varlistentry id="pstruct">
448 <term><command>pstruct</command></term>
449 <listitem>
450 <para>Dumps C structures as generated from <command>cc -g -S</command>
451 stabs</para>
452 <indexterm zone="ch-system-perl pstruct">
453 <primary sortas="b-pstruct">pstruct</primary>
454 </indexterm>
455 </listitem>
456 </varlistentry>
457-->
458 <varlistentry id="ptar">
459 <term><command>ptar</command></term>
460 <listitem>
461 <para>A <command>tar</command>-like program written in Perl</para>
462 <indexterm zone="ch-system-perl ptar">
463 <primary sortas="b-ptar">ptar</primary>
464 </indexterm>
465 </listitem>
466 </varlistentry>
467
468 <varlistentry id="ptardiff">
469 <term><command>ptardiff</command></term>
470 <listitem>
471 <para>A Perl program that compares an extracted archive with an
472 unextracted one</para>
473 <indexterm zone="ch-system-perl ptardiff">
474 <primary sortas="b-ptardiff">ptardiff</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 <varlistentry id="ptargrep">
480 <term><command>ptargrep</command></term>
481 <listitem>
482 <para>A Perl program that applies pattern matching to the contents
483 of files in a tar archive</para>
484 <indexterm zone="ch-system-perl ptargrep">
485 <primary sortas="b-ptargrep">ptargrep</primary>
486 </indexterm>
487 </listitem>
488 </varlistentry>
489
490 <varlistentry id="shasum">
491 <term><command>shasum</command></term>
492 <listitem>
493 <para>Prints or checks SHA checksums</para>
494 <indexterm zone="ch-system-perl shasum">
495 <primary sortas="b-shasum">shasum</primary>
496 </indexterm>
497 </listitem>
498 </varlistentry>
499
500 <varlistentry id="splain">
501 <term><command>splain</command></term>
502 <listitem>
503 <para>Is used to force verbose warning diagnostics in Perl</para>
504 <indexterm zone="ch-system-perl splain">
505 <primary sortas="b-splain">splain</primary>
506 </indexterm>
507 </listitem>
508 </varlistentry>
509
510 <varlistentry id="xsubpp">
511 <term><command>xsubpp</command></term>
512 <listitem>
513 <para>Converts Perl XS code into C code</para>
514 <indexterm zone="ch-system-perl xsubpp">
515 <primary sortas="b-xsubpp">xsubpp</primary>
516 </indexterm>
517 </listitem>
518 </varlistentry>
519
520 <varlistentry id="zipdetails">
521 <term><command>zipdetails</command></term>
522 <listitem>
523 <para>Displays details about the internal structure of a Zip file</para>
524 <indexterm zone="ch-system-perl zipdetails">
525 <primary sortas="b-zipdetails">zipdetails</primary>
526 </indexterm>
527 </listitem>
528 </varlistentry>
529
530 </variablelist>
531
532 </sect2>
533
534</sect1>
Note: See TracBrowser for help on using the repository browser.