source: chapter08/perl.xml@ 37e35d2

multilib-10.1
Last change on this file since 37e35d2 was 37e35d2, checked in by Thomas Trepl <thomas@…>, 4 years ago

Update to new lfs structure

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