source: chapter06/perl.xml@ 352e6fc

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 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 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 352e6fc was 352e6fc, checked in by Matthew Burgess <matthew@…>, 15 years ago

Upgrade to Perl-5.10.1. Fixes #2479.

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

  • 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-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 testsuite:</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 module. By
51 default Perl will use an internal copy of the Zlib source for the build.
52 Issue the following command so that Perl will use the Zlib library
53 installed on the system:</para>
54
55<screen><userinput remap="pre">sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \
56 -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \
57 -e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \
58 ext/Compress-Raw-Zlib/config.in</userinput></screen>
59
60 <para>To have full control over the way Perl is set up, you can run the
61 interactive <command>Configure</command> script and hand-pick the way this
62 package is built. If you prefer, you can use the defaults that Perl
63 auto-detects, by preparing Perl for compilation with:</para>
64
65<screen><userinput remap="configure">sh Configure -des -Dprefix=/usr \
66 -Dvendorprefix=/usr \
67 -Dman1dir=/usr/share/man/man1 \
68 -Dman3dir=/usr/share/man/man3 \
69 -Dpager="/usr/bin/less -isR"</userinput></screen>
70
71 <variablelist>
72 <title>The meaning of the configure options:</title>
73
74 <varlistentry>
75 <term><parameter>-Dvendorprefix=/usr</parameter></term>
76 <listitem>
77 <para>This ensures <command>perl</command> knows how to
78 tell packages where they should install their perl modules.</para>
79 </listitem>
80 </varlistentry>
81
82 <varlistentry>
83 <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
84 <listitem>
85 <para>This corrects an error in the way that <command>perldoc</command>
86 invokes the <command>less</command> program.</para>
87 </listitem>
88 </varlistentry>
89
90 <varlistentry>
91 <term><parameter>-Dman1dir=/usr/share/man/man1
92 -Dman3dir=/usr/share/man/man3</parameter></term>
93 <listitem>
94 <para>Since Groff is not installed yet, <command>Configure</command>
95 thinks that we do not want man pages for Perl. Issuing these
96 parameters overrides this decision.</para>
97 </listitem>
98 </varlistentry>
99
100 </variablelist>
101
102 <para>Compile the package:</para>
103
104<screen><userinput remap="make">make</userinput></screen>
105
106 <para>To test the results (approximately 2.5 SBU), issue:</para>
107
108<screen><userinput remap="test">make test</userinput></screen>
109
110 <para>Install the package:</para>
111
112<screen><userinput remap="install">make install</userinput></screen>
113
114 </sect2>
115
116 <sect2 id="contents-perl" role="content">
117 <title>Contents of Perl</title>
118
119 <segmentedlist>
120 <segtitle>Installed programs</segtitle>
121 <segtitle>Installed libraries</segtitle>
122
123 <seglistitem>
124 <seg>a2p, c2ph, config_data, corelist, cpan, cpan2dist, cpanp,
125 cpanp-run-perl, dprofpp, enc2xs, find2perl, h2ph, h2xs,
126 instmodsh, libnetcfg, perl, perl&perl-version; (link to perl),
127 perlbug, perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex,
128 pod2man, pod2text, pod2usage, podchecker, podselect, prove,
129 psed (link to s2p), pstruct (link to c2ph), ptar, ptardiff, s2p,
130 shasum, splain, and xsubpp</seg>
131 <seg>Several hundred which cannot all be listed here</seg>
132 </seglistitem>
133 </segmentedlist>
134
135 <variablelist>
136 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
137 <?dbfo list-presentation="list"?>
138 <?dbhtml list-presentation="table"?>
139
140 <varlistentry id="a2p">
141 <term><command>a2p</command></term>
142 <listitem>
143 <para>Translates awk to Perl</para>
144 <indexterm zone="ch-system-perl a2p">
145 <primary sortas="b-a2p">a2p</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry id="c2ph">
151 <term><command>c2ph</command></term>
152 <listitem>
153 <para>Dumps C structures as generated from
154 <command>cc -g -S</command></para>
155 <indexterm zone="ch-system-perl c2ph">
156 <primary sortas="b-c2ph">c2ph</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="config_data">
162 <term><command>config_data</command></term>
163 <listitem>
164 <para>Queries or changes configuration of Perl modules</para>
165 <indexterm zone="ch-system-perl config_data">
166 <primary sortas="b-config_data">config_data</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="corelist">
172 <term><command>corelist</command></term>
173 <listitem>
174 <para>A commandline frontend to Module::CoreList</para>
175 <indexterm zone="ch-system-perl corelist">
176 <primary sortas="b-corelist">corelist</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="cpan">
182 <term><command>cpan</command></term>
183 <listitem>
184 <para>Interact with the Comprehensive Perl Archive Network (CPAN)
185 from the command line</para>
186 <indexterm zone="ch-system-perl cpan">
187 <primary sortas="b-cpan">cpan</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 <varlistentry id="cpan2dist">
193 <term><command>cpan2dist</command></term>
194 <listitem>
195 <para>The CPANPLUS distribution creator</para>
196 <indexterm zone="ch-system-perl cpan2dist">
197 <primary sortas="b-cpan2dist">cpan2dist</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="cpanp">
203 <term><command>cpanp</command></term>
204 <listitem>
205 <para>The CPANPLUS launcher</para>
206 <indexterm zone="ch-system-perl cpanp">
207 <primary sortas="b-cpanp">cpanp</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="cpanp-run-perl">
213 <term><command>cpanp-run-perl</command></term>
214 <listitem>
215 <para>Perl script that (description needed)</para>
216 <indexterm zone="ch-system-perl cpanp-run-perl">
217 <primary sortas="b-cpanp-run-perl">cpanp-run-perl</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="dprofpp">
223 <term><command>dprofpp</command></term>
224 <listitem>
225 <para>Displays Perl profile data</para>
226 <indexterm zone="ch-system-perl dprofpp">
227 <primary sortas="b-dprofpp">dprofpp</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="enc2xs">
233 <term><command>enc2xs</command></term>
234 <listitem>
235 <para>Builds a Perl extension for the Encode module from either
236 Unicode Character Mappings or Tcl Encoding Files</para>
237 <indexterm zone="ch-system-perl enc2xs">
238 <primary sortas="b-enc2xs">enc2xs</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="find2perl">
244 <term><command>find2perl</command></term>
245 <listitem>
246 <para>Translates <command>find</command> commands to Perl</para>
247 <indexterm zone="ch-system-perl find2perl">
248 <primary sortas="b-find2perl">find2perl</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252
253 <varlistentry id="h2ph">
254 <term><command>h2ph</command></term>
255 <listitem>
256 <para>Converts <filename class="extension">.h</filename> C header
257 files to <filename class="extension">.ph</filename> Perl header
258 files</para>
259 <indexterm zone="ch-system-perl h2ph">
260 <primary sortas="b-h2ph">h2ph</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="h2xs">
266 <term><command>h2xs</command></term>
267 <listitem>
268 <para>Converts <filename class="extension">.h</filename> C header
269 files to Perl extensions</para>
270 <indexterm zone="ch-system-perl h2xs">
271 <primary sortas="b-h2xs">h2xs</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="instmodsh">
277 <term><command>instmodsh</command></term>
278 <listitem>
279 <para>Shell script for examining installed Perl modules,
280 and can even create a tarball from an installed module</para>
281 <indexterm zone="ch-system-perl instmodsh">
282 <primary sortas="b-instmodsh">instmodsh</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="libnetcfg">
288 <term><command>libnetcfg</command></term>
289 <listitem>
290 <para>Can be used to configure the
291 <filename class="libraryfile">libnet</filename></para>
292 <indexterm zone="ch-system-perl libnetcfg">
293 <primary sortas="b-libnetcfg">libnetcfg</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 <varlistentry id="perl">
299 <term><command>perl</command></term>
300 <listitem>
301 <para>Combines some of the best features of C, <command>sed</command>,
302 <command>awk</command> and <command>sh</command> into a single
303 swiss-army language</para>
304 <indexterm zone="ch-system-perl perl">
305 <primary sortas="b-perl">perl</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry id="perl-version">
311 <term><command>perl&perl-version;</command></term>
312 <listitem>
313 <para>A hard link to <command>perl</command></para>
314 <indexterm zone="ch-system-perl perl-version">
315 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="perlbug">
321 <term><command>perlbug</command></term>
322 <listitem>
323 <para>Used to generate bug reports about Perl, or the modules that come
324 with it, and mail them</para>
325 <indexterm zone="ch-system-perl perlbug">
326 <primary sortas="b-perlbug">perlbug</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
331 <varlistentry id="perldoc">
332 <term><command>perldoc</command></term>
333 <listitem>
334 <para>Displays a piece of documentation in pod format that is embedded
335 in the Perl installation tree or in a Perl script</para>
336 <indexterm zone="ch-system-perl perldoc">
337 <primary sortas="b-perldoc">perldoc</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 <varlistentry id="perlivp">
343 <term><command>perlivp</command></term>
344 <listitem>
345 <para>The Perl Installation Verification Procedure; it can be used to
346 verify that Perl and its libraries have been installed
347 correctly</para>
348 <indexterm zone="ch-system-perl perlivp">
349 <primary sortas="b-perlivp">perlivp</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353
354 <varlistentry id="piconv">
355 <term><command>piconv</command></term>
356 <listitem>
357 <para>A Perl version of the character encoding converter
358 <command>iconv</command></para>
359 <indexterm zone="ch-system-perl piconv">
360 <primary sortas="b-piconv">piconv</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="pl2pm">
366 <term><command>pl2pm</command></term>
367 <listitem>
368 <para>A rough tool for converting Perl4
369 <filename class="extension">.pl</filename> files to Perl5
370 <filename class="extension">.pm</filename> modules</para>
371 <indexterm zone="ch-system-perl pl2pm">
372 <primary sortas="b-pl2pm">pl2pm</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
376
377 <varlistentry id="pod2html">
378 <term><command>pod2html</command></term>
379 <listitem>
380 <para>Converts files from pod format to HTML format</para>
381 <indexterm zone="ch-system-perl pod2html">
382 <primary sortas="b-pod2html">pod2html</primary>
383 </indexterm>
384 </listitem>
385 </varlistentry>
386
387 <varlistentry id="pod2latex">
388 <term><command>pod2latex</command></term>
389 <listitem>
390 <para>Converts files from pod format to LaTeX format</para>
391 <indexterm zone="ch-system-perl pod2latex">
392 <primary sortas="b-pod2latex">pod2latex</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="pod2man">
398 <term><command>pod2man</command></term>
399 <listitem>
400 <para>Converts pod data to formatted *roff input</para>
401 <indexterm zone="ch-system-perl pod2man">
402 <primary sortas="b-pod2man">pod2man</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
407 <varlistentry id="pod2text">
408 <term><command>pod2text</command></term>
409 <listitem>
410 <para>Converts pod data to formatted ASCII text</para>
411 <indexterm zone="ch-system-perl pod2text">
412 <primary sortas="b-pod2text">pod2text</primary>
413 </indexterm>
414 </listitem>
415 </varlistentry>
416
417 <varlistentry id="pod2usage">
418 <term><command>pod2usage</command></term>
419 <listitem>
420 <para>Prints usage messages from embedded pod docs in files</para>
421 <indexterm zone="ch-system-perl pod2usage">
422 <primary sortas="b-pod2usage">pod2usage</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
427 <varlistentry id="podchecker">
428 <term><command>podchecker</command></term>
429 <listitem>
430 <para>Checks the syntax of pod format documentation files</para>
431 <indexterm zone="ch-system-perl podchecker">
432 <primary sortas="b-podchecker">podchecker</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="podselect">
438 <term><command>podselect</command></term>
439 <listitem>
440 <para>Displays selected sections of pod documentation</para>
441 <indexterm zone="ch-system-perl podselect">
442 <primary sortas="b-podselect">podselect</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="prove">
448 <term><command>prove</command></term>
449 <listitem>
450 <para>Command line tool for running tests against the Test::Harness
451 module.</para>
452 <indexterm zone="ch-system-perl prove">
453 <primary sortas="b-prove">prove</primary>
454 </indexterm>
455 </listitem>
456 </varlistentry>
457
458 <varlistentry id="psed">
459 <term><command>psed</command></term>
460 <listitem>
461 <para>A Perl version of the stream editor <command>sed</command></para>
462 <indexterm zone="ch-system-perl psed">
463 <primary sortas="b-psed">psed</primary>
464 </indexterm>
465 </listitem>
466 </varlistentry>
467
468 <varlistentry id="pstruct">
469 <term><command>pstruct</command></term>
470 <listitem>
471 <para>Dumps C structures as generated from <command>cc -g -S</command>
472 stabs</para>
473 <indexterm zone="ch-system-perl pstruct">
474 <primary sortas="b-pstruct">pstruct</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 <varlistentry id="ptar">
480 <term><command>ptar</command></term>
481 <listitem>
482 <para>A <command>tar</command>-like program written in Perl</para>
483 <indexterm zone="ch-system-perl ptar">
484 <primary sortas="b-ptar">ptar</primary>
485 </indexterm>
486 </listitem>
487 </varlistentry>
488
489 <varlistentry id="ptardiff">
490 <term><command>ptardiff</command></term>
491 <listitem>
492 <para>A Perl program that compares an extracted archive with an
493 unextracted one</para>
494 <indexterm zone="ch-system-perl ptardiff">
495 <primary sortas="b-ptardiff">ptardiff</primary>
496 </indexterm>
497 </listitem>
498 </varlistentry>
499
500 <varlistentry id="s2p">
501 <term><command>s2p</command></term>
502 <listitem>
503 <para>Translates <command>sed</command> scripts to Perl</para>
504 <indexterm zone="ch-system-perl s2p">
505 <primary sortas="b-s2p">s2p</primary>
506 </indexterm>
507 </listitem>
508 </varlistentry>
509
510 <varlistentry id="shasum">
511 <term><command>shasum</command></term>
512 <listitem>
513 <para>Prints or checks SHA checksums</para>
514 <indexterm zone="ch-system-perl shasum">
515 <primary sortas="b-shasum">shasum</primary>
516 </indexterm>
517 </listitem>
518 </varlistentry>
519
520 <varlistentry id="splain">
521 <term><command>splain</command></term>
522 <listitem>
523 <para>Is used to force verbose warning diagnostics in Perl</para>
524 <indexterm zone="ch-system-perl splain">
525 <primary sortas="b-splain">splain</primary>
526 </indexterm>
527 </listitem>
528 </varlistentry>
529
530 <varlistentry id="xsubpp">
531 <term><command>xsubpp</command></term>
532 <listitem>
533 <para>Converts Perl XS code into C code</para>
534 <indexterm zone="ch-system-perl xsubpp">
535 <primary sortas="b-xsubpp">xsubpp</primary>
536 </indexterm>
537 </listitem>
538 </varlistentry>
539
540 </variablelist>
541
542 </sect2>
543
544</sect1>
Note: See TracBrowser for help on using the repository browser.