source: chapter06/perl.xml@ 9d42ad9

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.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 9d42ad9 was 9d42ad9, checked in by Bruce Dubbs <bdubbs@…>, 14 years ago

Update installed programs lists

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

  • Property mode set to 100644
File size: 19.1 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 cpan/Compress-Raw-Zlib/config.in</userinput></screen>
59
60 <para>To have full control over the way Perl is set up, you can remove the
61 <quote>-des</quote> options from the following command and hand-pick the way
62 this package is built. Alteratively, use the command exactly as below to
63 use the defaults that Perl auto-detects:</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 <segtitle>Installed directory</segtitle>
123
124 <seglistitem>
125 <seg>a2p, c2ph, config_data, corelist, cpan, cpan2dist, cpanp,
126 cpanp-run-perl, dprofpp, enc2xs, find2perl, h2ph, h2xs,
127 instmodsh, libnetcfg, perl, perl&perl-version; (link to perl),
128 perlbug, perldoc, perlivp, perlthanks (link to perlbug), piconv, pl2pm,
129 pod2html, pod2latex, pod2man, pod2text, pod2usage, podchecker,
130 podselect, prove, psed (link to s2p), pstruct (link to c2ph), ptar,
131 ptardiff, s2p, shasum, splain, and xsubpp</seg>
132 <seg>Several hundred which cannot all be listed here</seg>
133 <seg>/usr/lib/perl5</seg>
134 </seglistitem>
135 </segmentedlist>
136
137 <variablelist>
138 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
139 <?dbfo list-presentation="list"?>
140 <?dbhtml list-presentation="table"?>
141
142 <varlistentry id="a2p">
143 <term><command>a2p</command></term>
144 <listitem>
145 <para>Translates awk to Perl</para>
146 <indexterm zone="ch-system-perl a2p">
147 <primary sortas="b-a2p">a2p</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="c2ph">
153 <term><command>c2ph</command></term>
154 <listitem>
155 <para>Dumps C structures as generated from
156 <command>cc -g -S</command></para>
157 <indexterm zone="ch-system-perl c2ph">
158 <primary sortas="b-c2ph">c2ph</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="config_data">
164 <term><command>config_data</command></term>
165 <listitem>
166 <para>Queries or changes configuration of Perl modules</para>
167 <indexterm zone="ch-system-perl config_data">
168 <primary sortas="b-config_data">config_data</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="corelist">
174 <term><command>corelist</command></term>
175 <listitem>
176 <para>A commandline frontend to Module::CoreList</para>
177 <indexterm zone="ch-system-perl corelist">
178 <primary sortas="b-corelist">corelist</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="cpan">
184 <term><command>cpan</command></term>
185 <listitem>
186 <para>Interact with the Comprehensive Perl Archive Network (CPAN)
187 from the command line</para>
188 <indexterm zone="ch-system-perl cpan">
189 <primary sortas="b-cpan">cpan</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="cpan2dist">
195 <term><command>cpan2dist</command></term>
196 <listitem>
197 <para>The CPANPLUS distribution creator</para>
198 <indexterm zone="ch-system-perl cpan2dist">
199 <primary sortas="b-cpan2dist">cpan2dist</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="cpanp">
205 <term><command>cpanp</command></term>
206 <listitem>
207 <para>The CPANPLUS launcher</para>
208 <indexterm zone="ch-system-perl cpanp">
209 <primary sortas="b-cpanp">cpanp</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="cpanp-run-perl">
215 <term><command>cpanp-run-perl</command></term>
216 <listitem>
217 <para>Perl script that is used to enable flushing of the output
218 buffer after each write in spawned processes</para>
219 <indexterm zone="ch-system-perl cpanp-run-perl">
220 <primary sortas="b-cpanp-run-perl">cpanp-run-perl</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="dprofpp">
226 <term><command>dprofpp</command></term>
227 <listitem>
228 <para>Displays Perl profile data</para>
229 <indexterm zone="ch-system-perl dprofpp">
230 <primary sortas="b-dprofpp">dprofpp</primary>
231 </indexterm>
232 </listitem>
233 </varlistentry>
234
235 <varlistentry id="enc2xs">
236 <term><command>enc2xs</command></term>
237 <listitem>
238 <para>Builds a Perl extension for the Encode module from either
239 Unicode Character Mappings or Tcl Encoding Files</para>
240 <indexterm zone="ch-system-perl enc2xs">
241 <primary sortas="b-enc2xs">enc2xs</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="find2perl">
247 <term><command>find2perl</command></term>
248 <listitem>
249 <para>Translates <command>find</command> commands to Perl</para>
250 <indexterm zone="ch-system-perl find2perl">
251 <primary sortas="b-find2perl">find2perl</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 <varlistentry id="h2ph">
257 <term><command>h2ph</command></term>
258 <listitem>
259 <para>Converts <filename class="extension">.h</filename> C header
260 files to <filename class="extension">.ph</filename> Perl header
261 files</para>
262 <indexterm zone="ch-system-perl h2ph">
263 <primary sortas="b-h2ph">h2ph</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="h2xs">
269 <term><command>h2xs</command></term>
270 <listitem>
271 <para>Converts <filename class="extension">.h</filename> C header
272 files to Perl extensions</para>
273 <indexterm zone="ch-system-perl h2xs">
274 <primary sortas="b-h2xs">h2xs</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="instmodsh">
280 <term><command>instmodsh</command></term>
281 <listitem>
282 <para>Shell script for examining installed Perl modules,
283 and can even create a tarball from an installed module</para>
284 <indexterm zone="ch-system-perl instmodsh">
285 <primary sortas="b-instmodsh">instmodsh</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="libnetcfg">
291 <term><command>libnetcfg</command></term>
292 <listitem>
293 <para>Can be used to configure the
294 <filename class="libraryfile">libnet</filename></para>
295 <indexterm zone="ch-system-perl libnetcfg">
296 <primary sortas="b-libnetcfg">libnetcfg</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="perl">
302 <term><command>perl</command></term>
303 <listitem>
304 <para>Combines some of the best features of C, <command>sed</command>,
305 <command>awk</command> and <command>sh</command> into a single
306 swiss-army language</para>
307 <indexterm zone="ch-system-perl perl">
308 <primary sortas="b-perl">perl</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="perl-version">
314 <term><command>perl&perl-version;</command></term>
315 <listitem>
316 <para>A hard link to <command>perl</command></para>
317 <indexterm zone="ch-system-perl perl-version">
318 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="perlbug">
324 <term><command>perlbug</command></term>
325 <listitem>
326 <para>Used to generate bug reports about Perl, or the modules that come
327 with it, and mail them</para>
328 <indexterm zone="ch-system-perl perlbug">
329 <primary sortas="b-perlbug">perlbug</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 <varlistentry id="perldoc">
335 <term><command>perldoc</command></term>
336 <listitem>
337 <para>Displays a piece of documentation in pod format that is embedded
338 in the Perl installation tree or in a Perl script</para>
339 <indexterm zone="ch-system-perl perldoc">
340 <primary sortas="b-perldoc">perldoc</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
345 <varlistentry id="perlivp">
346 <term><command>perlivp</command></term>
347 <listitem>
348 <para>The Perl Installation Verification Procedure; it can be used to
349 verify that Perl and its libraries have been installed
350 correctly</para>
351 <indexterm zone="ch-system-perl perlivp">
352 <primary sortas="b-perlivp">perlivp</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
356
357 <varlistentry id="perlthanks">
358 <term><command>perlthanks</command></term>
359 <listitem>
360 <para>Used to generate thank you messages to mail to the Perl
361 developers</para>
362 <indexterm zone="ch-system-perl perlthanks">
363 <primary sortas="b-perlthanks">perlthanks</primary>
364 </indexterm>
365 </listitem>
366 </varlistentry>
367
368 <varlistentry id="piconv">
369 <term><command>piconv</command></term>
370 <listitem>
371 <para>A Perl version of the character encoding converter
372 <command>iconv</command></para>
373 <indexterm zone="ch-system-perl piconv">
374 <primary sortas="b-piconv">piconv</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="pl2pm">
380 <term><command>pl2pm</command></term>
381 <listitem>
382 <para>A rough tool for converting Perl4
383 <filename class="extension">.pl</filename> files to Perl5
384 <filename class="extension">.pm</filename> modules</para>
385 <indexterm zone="ch-system-perl pl2pm">
386 <primary sortas="b-pl2pm">pl2pm</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="pod2html">
392 <term><command>pod2html</command></term>
393 <listitem>
394 <para>Converts files from pod format to HTML format</para>
395 <indexterm zone="ch-system-perl pod2html">
396 <primary sortas="b-pod2html">pod2html</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 <varlistentry id="pod2latex">
402 <term><command>pod2latex</command></term>
403 <listitem>
404 <para>Converts files from pod format to LaTeX format</para>
405 <indexterm zone="ch-system-perl pod2latex">
406 <primary sortas="b-pod2latex">pod2latex</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="pod2man">
412 <term><command>pod2man</command></term>
413 <listitem>
414 <para>Converts pod data to formatted *roff input</para>
415 <indexterm zone="ch-system-perl pod2man">
416 <primary sortas="b-pod2man">pod2man</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
421 <varlistentry id="pod2text">
422 <term><command>pod2text</command></term>
423 <listitem>
424 <para>Converts pod data to formatted ASCII text</para>
425 <indexterm zone="ch-system-perl pod2text">
426 <primary sortas="b-pod2text">pod2text</primary>
427 </indexterm>
428 </listitem>
429 </varlistentry>
430
431 <varlistentry id="pod2usage">
432 <term><command>pod2usage</command></term>
433 <listitem>
434 <para>Prints usage messages from embedded pod docs in files</para>
435 <indexterm zone="ch-system-perl pod2usage">
436 <primary sortas="b-pod2usage">pod2usage</primary>
437 </indexterm>
438 </listitem>
439 </varlistentry>
440
441 <varlistentry id="podchecker">
442 <term><command>podchecker</command></term>
443 <listitem>
444 <para>Checks the syntax of pod format documentation files</para>
445 <indexterm zone="ch-system-perl podchecker">
446 <primary sortas="b-podchecker">podchecker</primary>
447 </indexterm>
448 </listitem>
449 </varlistentry>
450
451 <varlistentry id="podselect">
452 <term><command>podselect</command></term>
453 <listitem>
454 <para>Displays selected sections of pod documentation</para>
455 <indexterm zone="ch-system-perl podselect">
456 <primary sortas="b-podselect">podselect</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="prove">
462 <term><command>prove</command></term>
463 <listitem>
464 <para>Command line tool for running tests against the Test::Harness
465 module.</para>
466 <indexterm zone="ch-system-perl prove">
467 <primary sortas="b-prove">prove</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
472 <varlistentry id="psed">
473 <term><command>psed</command></term>
474 <listitem>
475 <para>A Perl version of the stream editor <command>sed</command></para>
476 <indexterm zone="ch-system-perl psed">
477 <primary sortas="b-psed">psed</primary>
478 </indexterm>
479 </listitem>
480 </varlistentry>
481
482 <varlistentry id="pstruct">
483 <term><command>pstruct</command></term>
484 <listitem>
485 <para>Dumps C structures as generated from <command>cc -g -S</command>
486 stabs</para>
487 <indexterm zone="ch-system-perl pstruct">
488 <primary sortas="b-pstruct">pstruct</primary>
489 </indexterm>
490 </listitem>
491 </varlistentry>
492
493 <varlistentry id="ptar">
494 <term><command>ptar</command></term>
495 <listitem>
496 <para>A <command>tar</command>-like program written in Perl</para>
497 <indexterm zone="ch-system-perl ptar">
498 <primary sortas="b-ptar">ptar</primary>
499 </indexterm>
500 </listitem>
501 </varlistentry>
502
503 <varlistentry id="ptardiff">
504 <term><command>ptardiff</command></term>
505 <listitem>
506 <para>A Perl program that compares an extracted archive with an
507 unextracted one</para>
508 <indexterm zone="ch-system-perl ptardiff">
509 <primary sortas="b-ptardiff">ptardiff</primary>
510 </indexterm>
511 </listitem>
512 </varlistentry>
513
514 <varlistentry id="s2p">
515 <term><command>s2p</command></term>
516 <listitem>
517 <para>Translates <command>sed</command> scripts to Perl</para>
518 <indexterm zone="ch-system-perl s2p">
519 <primary sortas="b-s2p">s2p</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523
524 <varlistentry id="shasum">
525 <term><command>shasum</command></term>
526 <listitem>
527 <para>Prints or checks SHA checksums</para>
528 <indexterm zone="ch-system-perl shasum">
529 <primary sortas="b-shasum">shasum</primary>
530 </indexterm>
531 </listitem>
532 </varlistentry>
533
534 <varlistentry id="splain">
535 <term><command>splain</command></term>
536 <listitem>
537 <para>Is used to force verbose warning diagnostics in Perl</para>
538 <indexterm zone="ch-system-perl splain">
539 <primary sortas="b-splain">splain</primary>
540 </indexterm>
541 </listitem>
542 </varlistentry>
543
544 <varlistentry id="xsubpp">
545 <term><command>xsubpp</command></term>
546 <listitem>
547 <para>Converts Perl XS code into C code</para>
548 <indexterm zone="ch-system-perl xsubpp">
549 <primary sortas="b-xsubpp">xsubpp</primary>
550 </indexterm>
551 </listitem>
552 </varlistentry>
553
554 </variablelist>
555
556 </sect2>
557
558</sect1>
Note: See TracBrowser for help on using the repository browser.