source: chapter06/perl.xml@ 90aae6b

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.5 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 90aae6b was 90aae6b, checked in by Matthew Burgess <matthew@…>, 15 years ago

Update various packages' list of installed programs and libraries. Many thanks to Chris Staub for the patch. Fixes #2371.

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

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