source: chapter06/perl.xml@ 0cba512d

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 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 0cba512d was bd312dc, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Installed fiels updates

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

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