source: chapter06/perl.xml@ 4d2dd2e

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

Add patch make and another patch to perl

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

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