source: BOOK/final-system/common/perl.xml@ 68d33bad

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 68d33bad was 6dbe056, checked in by Chris Staub <chris@…>, 15 years ago

Added perlthanks info

  • 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 <title>Perl-&perl-version;</title>
12
13 <indexterm zone="ch-system-perl">
14 <primary sortas="a-Perl">Perl</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Perl package contains the Practical Extraction and Report
21 Language.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Perl</title>
27
28 <para os="s1">The following sed causes <filename>DynaLoader.a</filename>
29 to be built with -fPIC so it can be linked into a shared library
30 later:</para>
31
32<screen os="s2"><userinput>sed -i -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
33 -e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH</userinput></screen>
34
35 <para os="s3">By default, Perl's Compress::Raw::Zlib module builds and
36 links against its own internal copy of Zlib. The following command will
37 tell it to use the system-installed Zlib:</para>
38
39<screen os="s4"><userinput>sed -i -e '/^BUILD_ZLIB/ s/True/False/' \
40 -e '/^INCLUDE/s|\./zlib-src|/usr/include|' \
41 -e '/^LIB/s|\./zlib-src|/usr/lib|' \
42 ext/Compress-Raw-Zlib/config.in</userinput></screen>
43
44 <note os="a00">
45 <para>If you are following the boot method you will need to enable the
46 loopback device as well as set a hostname for some of the tests:</para>
47
48 <screen><userinput>ip link set lo up
49hostname clfs</userinput></screen>
50 </note>
51
52 <para os="a01">Before starting to configure, create a basic
53 <filename>/etc/hosts</filename> file which will be referenced by one
54 of Perl's configuration files as well as used by the testsuite:</para>
55
56<screen os="a02"><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
57
58 <para os="a">To have full control over the way Perl is set up, you can
59 run the interactive <command>Configure</command> script and hand-pick
60 the way this package is built. If you prefer instead to use the defaults
61 that Perl auto-detects, prepare Perl for compilation with:</para>
62
63<screen os="b"><userinput>./configure.gnu --prefix=/usr \
64 -Dvendorprefix=/usr \
65 -Dman1dir=/usr/share/man/man1 \
66 -Dman3dir=/usr/share/man/man3 \
67 -Dpager="/bin/less -isR" \
68 -Dusethreads -Duseshrplib</userinput></screen>
69
70 <variablelist os="c">
71 <title>The meaning of the configure option:</title>
72
73 <varlistentry os="c1">
74 <term><parameter>-Dpager="/bin/less -isR"</parameter></term>
75 <listitem>
76 <para>This corrects an error in the way that <command>perldoc</command>
77 invokes the <command>less</command> program.</para>
78 </listitem>
79 </varlistentry>
80
81 <varlistentry os="c2">
82 <term><parameter>-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3</parameter></term>
83 <listitem>
84 <para>Since Groff is not installed yet,
85 <command>configure.gnu</command> thinks that we do not want
86 man pages for Perl. Issuing these parameters overrides this decision.</para>
87 </listitem>
88 </varlistentry>
89
90 <varlistentry os="c3">
91 <term><parameter>-Dusethreads</parameter></term>
92 <listitem>
93 <para>This tells Perl to use threads.</para>
94 </listitem>
95 </varlistentry>
96
97 <varlistentry os="c4">
98 <term><parameter>-Duseshrplib</parameter></term>
99 <listitem>
100 <para>This tells Perl to build a shared libperl.</para>
101 </listitem>
102 </varlistentry>
103
104 </variablelist>
105
106 <para os="d">Compile the package:</para>
107
108<screen os="e"><userinput>make</userinput></screen>
109
110 <para os="h">To test the results, issue:
111 <userinput>make test</userinput>.</para>
112
113 <para os="j">Install the package:</para>
114
115<screen os="k"><userinput>make install</userinput></screen>
116
117 </sect2>
118
119 <sect2 id="contents-perl" role="content">
120 <title>Contents of Perl</title>
121
122 <segmentedlist>
123 <segtitle>Installed programs</segtitle>
124 <segtitle>Installed libraries</segtitle>
125 <segtitle>Installed directory</segtitle>
126
127 <seglistitem>
128 <seg>a2p, c2ph, config_data, corelist, cpan, cpan2dist, cpanp,
129 cpanp-run-perl, dprofpp, enc2xs, find2perl, h2ph, h2xs, instmodsh,
130 libnetcfg, perl, perl&perl-version; (link to perl), perlbug,
131 perldoc, perlivp, perlthanks (link to perlbug), piconv, pl2pm, pod2html,
132 pod2latex, pod2man, pod2text, pod2usage, podchecker, podselect, prove,
133 psed (link to s2p), pstruct (link to c2ph), ptar, ptardiff, s2p, shasum,
134 splain, and xsubpp</seg>
135 <seg>Several hundred which cannot all be listed here</seg>
136 <seg>/usr/lib/perl5</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>Shell script that provides a command interface to CPAN.pm</para>
190 <indexterm zone="ch-system-perl cpan">
191 <primary sortas="b-cpan">cpan</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="cpan2dist">
197 <term><command>cpan2dist</command></term>
198 <listitem>
199 <para>The CPANPLUS distribution creator</para>
200 <indexterm zone="ch-system-perl cpan2dist">
201 <primary sortas="b-cpan2dist">cpan2dist</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="cpanp">
207 <term><command>cpanp</command></term>
208 <listitem>
209 <para>The CPANPLUS launcher</para>
210 <indexterm zone="ch-system-perl cpanp">
211 <primary sortas="b-cpanp">cpanp</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="cpanp-run-perl">
217 <term><command>cpanp-run-perl</command></term>
218 <listitem>
219 <para>Perl script that (description needed)</para>
220 <indexterm zone="ch-system-perl cpanp-run-perl">
221 <primary sortas="b-cpanp-run-perl">cpanp-run-perl</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="dprofpp">
227 <term><command>dprofpp</command></term>
228 <listitem>
229 <para>Displays Perl profile data</para>
230 <indexterm zone="ch-system-perl dprofpp">
231 <primary sortas="b-dprofpp">dprofpp</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="enc2xs">
237 <term><command>enc2xs</command></term>
238 <listitem>
239 <para>Builds a Perl extension for the Encode module from either
240 Unicode Character Mappings or Tcl Encoding Files</para>
241 <indexterm zone="ch-system-perl enc2xs">
242 <primary sortas="b-enc2xs">enc2xs</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="find2perl">
248 <term><command>find2perl</command></term>
249 <listitem>
250 <para>Translates <command>find</command> commands to Perl</para>
251 <indexterm zone="ch-system-perl find2perl">
252 <primary sortas="b-find2perl">find2perl</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="h2ph">
258 <term><command>h2ph</command></term>
259 <listitem>
260 <para>Converts <filename class="extension">.h</filename> C header
261 files to <filename class="extension">.ph</filename> Perl header
262 files</para>
263 <indexterm zone="ch-system-perl h2ph">
264 <primary sortas="b-h2ph">h2ph</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="h2xs">
270 <term><command>h2xs</command></term>
271 <listitem>
272 <para>Converts <filename class="extension">.h</filename> C header
273 files to Perl extensions</para>
274 <indexterm zone="ch-system-perl h2xs">
275 <primary sortas="b-h2xs">h2xs</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="instmodsh">
281 <term><command>instmodsh</command></term>
282 <listitem>
283 <para>A shell script for examining installed Perl modules,
284 and can even create a tarball from an installed module</para>
285 <indexterm zone="ch-system-perl instmodsh">
286 <primary sortas="b-instmodsh">instmodsh</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="libnetcfg">
292 <term><command>libnetcfg</command></term>
293 <listitem>
294 <para>Can be used to configure the
295 <filename class="libraryfile">libnet</filename></para>
296 <indexterm zone="ch-system-perl libnetcfg">
297 <primary sortas="b-libnetcfg">libnetcfg</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="perl">
303 <term><command>perl</command></term>
304 <listitem>
305 <para>Combines some of the best features of C, <command>sed</command>,
306 <command>awk</command> and <command>sh</command> into a single
307 swiss-army-knife language</para>
308 <indexterm zone="ch-system-perl perl">
309 <primary sortas="b-perl">perl</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="perl-version">
315 <term><command>perl&perl-version;</command></term>
316 <listitem>
317 <para>A hard link to <command>perl</command></para>
318 <indexterm zone="ch-system-perl perl-version">
319 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="perlbug">
325 <term><command>perlbug</command></term>
326 <listitem>
327 <para>Used to generate bug reports about Perl, or the modules that come
328 with it, and mail them</para>
329 <indexterm zone="ch-system-perl perlbug">
330 <primary sortas="b-perlbug">perlbug</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="perldoc">
336 <term><command>perldoc</command></term>
337 <listitem>
338 <para>Displays a piece of documentation in pod format that is embedded
339 in the Perl installation tree or in a Perl script</para>
340 <indexterm zone="ch-system-perl perldoc">
341 <primary sortas="b-perldoc">perldoc</primary>
342 </indexterm>
343 </listitem>
344 </varlistentry>
345
346 <varlistentry id="perlivp">
347 <term><command>perlivp</command></term>
348 <listitem>
349 <para>The Perl Installation Verification Procedure; it can be used to
350 verify that Perl and its libraries have been installed
351 correctly</para>
352 <indexterm zone="ch-system-perl perlivp">
353 <primary sortas="b-perlivp">perlivp</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 <varlistentry id="perlthanks">
359 <term><command>perlthanks</command></term>
360 <listitem>
361 <para>Used to generate thank you messages to mail to the Perl
362 developers</para>
363 <indexterm zone="ch-system-perl perlthanks">
364 <primary sortas="b-perlthanks">perlthanks</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="piconv">
370 <term><command>piconv</command></term>
371 <listitem>
372 <para>A Perl version of the character encoding converter
373 <command>iconv</command></para>
374 <indexterm zone="ch-system-perl piconv">
375 <primary sortas="b-piconv">piconv</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
380 <varlistentry id="pl2pm">
381 <term><command>pl2pm</command></term>
382 <listitem>
383 <para>A rough tool for converting Perl4
384 <filename class="extension">.pl</filename> files to Perl5
385 <filename class="extension">.pm</filename> modules</para>
386 <indexterm zone="ch-system-perl pl2pm">
387 <primary sortas="b-pl2pm">pl2pm</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="pod2html">
393 <term><command>pod2html</command></term>
394 <listitem>
395 <para>Converts files from pod format to HTML format</para>
396 <indexterm zone="ch-system-perl pod2html">
397 <primary sortas="b-pod2html">pod2html</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="pod2latex">
403 <term><command>pod2latex</command></term>
404 <listitem>
405 <para>Converts files from pod format to LaTeX format</para>
406 <indexterm zone="ch-system-perl pod2latex">
407 <primary sortas="b-pod2latex">pod2latex</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="pod2man">
413 <term><command>pod2man</command></term>
414 <listitem>
415 <para>Converts pod data to formatted *roff input</para>
416 <indexterm zone="ch-system-perl pod2man">
417 <primary sortas="b-pod2man">pod2man</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="pod2text">
423 <term><command>pod2text</command></term>
424 <listitem>
425 <para>Converts pod data to formatted ASCII text</para>
426 <indexterm zone="ch-system-perl pod2text">
427 <primary sortas="b-pod2text">pod2text</primary>
428 </indexterm>
429 </listitem>
430 </varlistentry>
431
432 <varlistentry id="pod2usage">
433 <term><command>pod2usage</command></term>
434 <listitem>
435 <para>Prints usage messages from embedded pod docs in files</para>
436 <indexterm zone="ch-system-perl pod2usage">
437 <primary sortas="b-pod2usage">pod2usage</primary>
438 </indexterm>
439 </listitem>
440 </varlistentry>
441
442 <varlistentry id="podchecker">
443 <term><command>podchecker</command></term>
444 <listitem>
445 <para>Checks the syntax of pod format documentation files</para>
446 <indexterm zone="ch-system-perl podchecker">
447 <primary sortas="b-podchecker">podchecker</primary>
448 </indexterm>
449 </listitem>
450 </varlistentry>
451
452 <varlistentry id="podselect">
453 <term><command>podselect</command></term>
454 <listitem>
455 <para>Displays selected sections of pod documentation</para>
456 <indexterm zone="ch-system-perl podselect">
457 <primary sortas="b-podselect">podselect</primary>
458 </indexterm>
459 </listitem>
460 </varlistentry>
461
462 <varlistentry id="prove">
463 <term><command>prove</command></term>
464 <listitem>
465 <para>A command-line tool for running tests against Test::Harness</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> 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.