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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d8b9d99 was 427015f, checked in by Chris Staub <chris@…>, 16 years ago

Update lists of installed programs

  • Property mode set to 100644
File size: 18.6 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[96d0fe5]28 <para os="s1">The following sed causes <filename>DynaLoader.a</filename>
[6a7f467]29 to be built with -fPIC so it can be linked into a shared library
[040521bc]30 later:</para>
[6a7f467]31
[da50a69]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>
[6a7f467]34
[d73cf0a]35 <note os="a00">
36 <para>If you are following the boot method you will need to enable the
37 loopback device as well as set a hostname for some of the tests:</para>
38
39 <screen><userinput>ip link set lo up
40hostname clfs</userinput></screen>
41 </note>
42
43 <para os="a01">Before starting to configure, create a basic
[36da727]44 <filename>/etc/hosts</filename> file which will be referenced by one
45 of Perl's configuration files as well as used by the testsuite:</para>
[0b1aa01]46
[d73cf0a]47<screen os="a02"><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
[0b1aa01]48
[cfe892d]49 <para os="a">To have full control over the way Perl is set up, you can
50 run the interactive <command>Configure</command> script and hand-pick
51 the way this package is built. If you prefer instead to use the defaults
52 that Perl auto-detects, prepare Perl for compilation with:</para>
[3f8be484]53
[9bf414b]54<screen os="b"><userinput>./configure.gnu --prefix=/usr \
[bbf90e8]55 -Dman1dir=/usr/share/man/man1 \
56 -Dman3dir=/usr/share/man/man3 \
[c33fed0]57 -Dpager="/bin/less -isR" \
[1da2a84]58 -Dusethreads -Duseshrplib</userinput></screen>
[3f8be484]59
[e0e40d3]60 <variablelist os="c">
[3f8be484]61 <title>The meaning of the configure option:</title>
62
[e0e40d3]63 <varlistentry os="c1">
[3f8be484]64 <term><parameter>-Dpager="/bin/less -isR"</parameter></term>
65 <listitem>
66 <para>This corrects an error in the way that <command>perldoc</command>
67 invokes the <command>less</command> program.</para>
68 </listitem>
69 </varlistentry>
[1da2a84]70
[bbf90e8]71 <varlistentry os="c2">
72 <term><parameter>-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3</parameter></term>
73 <listitem>
74 <para>Since Groff is not installed yet,
75 <command>configure.gnu</command> thinks that we do not want
76 man pages for Perl. Issuing these parameters overrides this decision.</para>
77 </listitem>
78 </varlistentry>
[1da2a84]79
[c33fed0]80 <varlistentry os="c3">
81 <term><parameter>-Dusethreads</parameter></term>
82 <listitem>
83 <para>This tells Perl to use threads.</para>
84 </listitem>
85 </varlistentry>
[1da2a84]86
87 <varlistentry os="c4">
88 <term><parameter>-Duseshrplib</parameter></term>
89 <listitem>
90 <para>This tells Perl to build a shared libperl.</para>
91 </listitem>
92 </varlistentry>
93
[3f8be484]94 </variablelist>
95
[e0e40d3]96 <para os="d">Compile the package:</para>
[3f8be484]97
[e0e40d3]98<screen os="e"><userinput>make</userinput></screen>
[3f8be484]99
[056bbd8]100 <para os="h">To test the results, issue:
[adb2d7f]101 <userinput>make test</userinput>.</para>
[3f8be484]102
[e0e40d3]103 <para os="j">Install the package:</para>
[3f8be484]104
[e0e40d3]105<screen os="k"><userinput>make install</userinput></screen>
[3f8be484]106
107 </sect2>
108
109 <sect2 id="contents-perl" role="content">
110 <title>Contents of Perl</title>
111
112 <segmentedlist>
113 <segtitle>Installed programs</segtitle>
114 <segtitle>Installed libraries</segtitle>
115
116 <seglistitem>
[427015f]117 <seg>a2p, c2ph, config_data, corelist, cpan, cpan2dist, cpanp,
118 cpanp-run-perl, dprofpp, enc2xs, find2perl, h2ph, h2xs, instmodsh,
119 libnetcfg, perl, perl&perl-version; (link to perl), perlbug, perlcc,
120 perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man, pod2text,
121 pod2usage, podchecker, podselect, prove, psed (link to s2p),
122 pstruct (link to c2ph), ptar, ptardiff, s2p, shasum, splain, and
123 xsubpp</seg>
[3f8be484]124 <seg>Several hundred which cannot all be listed here</seg>
125 </seglistitem>
126 </segmentedlist>
127
128 <variablelist>
129 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
130 <?dbfo list-presentation="list"?>
131 <?dbhtml list-presentation="table"?>
132
133 <varlistentry id="a2p">
134 <term><command>a2p</command></term>
135 <listitem>
136 <para>Translates awk to Perl</para>
137 <indexterm zone="ch-system-perl a2p">
138 <primary sortas="b-a2p">a2p</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="c2ph">
144 <term><command>c2ph</command></term>
145 <listitem>
146 <para>Dumps C structures as generated from
147 <command>cc -g -S</command></para>
148 <indexterm zone="ch-system-perl c2ph">
149 <primary sortas="b-c2ph">c2ph</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
[427015f]154 <varlistentry id="config_data">
155 <term><command>config_data</command></term>
156 <listitem>
157 <para>Queries or changes configuration of Perl modules</para>
158 <indexterm zone="ch-system-perl config_data">
159 <primary sortas="b-config_data">config_data</primary>
160 </indexterm>
161 </listitem>
162 </varlistentry>
163
164 <varlistentry id="corelist">
165 <term><command>corelist</command></term>
166 <listitem>
167 <para>A commandline frontend to Module::CoreList</para>
168 <indexterm zone="ch-system-perl corelist">
169 <primary sortas="b-corelist">corelist</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
[e29fb58]174 <varlistentry id="cpan">
175 <term><command>cpan</command></term>
176 <listitem>
177 <para>Shell script that provides a command interface to CPAN.pm</para>
178 <indexterm zone="ch-system-perl cpan">
179 <primary sortas="b-cpan">cpan</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
[427015f]184 <varlistentry id="cpan2dist">
185 <term><command>cpan2dist</command></term>
186 <listitem>
187 <para>The CPANPLUS distribution creator</para>
188 <indexterm zone="ch-system-perl cpan2dist">
189 <primary sortas="b-cpan2dist">cpan2dist</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="cpanp">
195 <term><command>cpanp</command></term>
196 <listitem>
197 <para>The CPANPLUS launcher</para>
198 <indexterm zone="ch-system-perl cpanp">
199 <primary sortas="b-cpanp">cpanp</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="cpanp-run-perl">
205 <term><command>cpanp-run-perl</command></term>
206 <listitem>
207 <para>Perl script that (description needed)</para>
208 <indexterm zone="ch-system-perl cpanp-run-perl">
209 <primary sortas="b-cpanp-run-perl">cpanp-run-perl</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
[3f8be484]214 <varlistentry id="dprofpp">
215 <term><command>dprofpp</command></term>
216 <listitem>
217 <para>Displays Perl profile data</para>
218 <indexterm zone="ch-system-perl dprofpp">
219 <primary sortas="b-dprofpp">dprofpp</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
[045e44a]224 <varlistentry id="enc2xs">
225 <term><command>enc2xs</command></term>
226 <listitem>
227 <para>Builds a Perl extension for the Encode module from either
228 Unicode Character Mappings or Tcl Encoding Files</para>
229 <indexterm zone="ch-system-perl enc2xs">
230 <primary sortas="b-enc2xs">enc2xs</primary>
231 </indexterm>
232 </listitem>
233 </varlistentry>
234
[3f8be484]235 <varlistentry id="find2perl">
236 <term><command>find2perl</command></term>
237 <listitem>
238 <para>Translates <command>find</command> commands to Perl</para>
239 <indexterm zone="ch-system-perl find2perl">
240 <primary sortas="b-find2perl">find2perl</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 <varlistentry id="h2ph">
246 <term><command>h2ph</command></term>
247 <listitem>
248 <para>Converts <filename class="extension">.h</filename> C header
249 files to <filename class="extension">.ph</filename> Perl header
250 files</para>
251 <indexterm zone="ch-system-perl h2ph">
252 <primary sortas="b-h2ph">h2ph</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="h2xs">
258 <term><command>h2xs</command></term>
259 <listitem>
260 <para>Converts <filename class="extension">.h</filename> C header
261 files to Perl extensions</para>
262 <indexterm zone="ch-system-perl h2xs">
263 <primary sortas="b-h2xs">h2xs</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
[e29fb58]268 <varlistentry id="instmodsh">
269 <term><command>instmodsh</command></term>
270 <listitem>
271 <para>A shell script for examining installed Perl modules,
272 and can even create a tarball from an installed module</para>
273 <indexterm zone="ch-system-perl instmodsh">
274 <primary sortas="b-instmodsh">instmodsh</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
[427015f]279 <varlistentry id="libnetcfg">
280 <term><command>libnetcfg</command></term>
281 <listitem>
282 <para>Can be used to configure the
283 <filename class="libraryfile">libnet</filename></para>
284 <indexterm zone="ch-system-perl libnetcfg">
285 <primary sortas="b-libnetcfg">libnetcfg</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
[3f8be484]290 <varlistentry id="perl">
291 <term><command>perl</command></term>
292 <listitem>
293 <para>Combines some of the best features of C, <command>sed</command>,
294 <command>awk</command> and <command>sh</command> into a single
[1e91bbd]295 swiss-army-knife language</para>
[3f8be484]296 <indexterm zone="ch-system-perl perl">
297 <primary sortas="b-perl">perl</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="perl-version">
303 <term><command>perl&perl-version;</command></term>
304 <listitem>
305 <para>A hard link to <command>perl</command></para>
306 <indexterm zone="ch-system-perl perl-version">
307 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
312 <varlistentry id="perlbug">
313 <term><command>perlbug</command></term>
314 <listitem>
315 <para>Used to generate bug reports about Perl, or the modules that come
316 with it, and mail them</para>
317 <indexterm zone="ch-system-perl perlbug">
318 <primary sortas="b-perlbug">perlbug</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="perlcc">
324 <term><command>perlcc</command></term>
325 <listitem>
326 <para>Generates executables from Perl programs</para>
327 <indexterm zone="ch-system-perl perlcc">
328 <primary sortas="b-perlcc">perlcc</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="perldoc">
334 <term><command>perldoc</command></term>
335 <listitem>
336 <para>Displays a piece of documentation in pod format that is embedded
337 in the Perl installation tree or in a Perl script</para>
338 <indexterm zone="ch-system-perl perldoc">
339 <primary sortas="b-perldoc">perldoc</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 <varlistentry id="perlivp">
345 <term><command>perlivp</command></term>
346 <listitem>
347 <para>The Perl Installation Verification Procedure; it can be used to
348 verify that Perl and its libraries have been installed
349 correctly</para>
350 <indexterm zone="ch-system-perl perlivp">
351 <primary sortas="b-perlivp">perlivp</primary>
352 </indexterm>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry id="piconv">
357 <term><command>piconv</command></term>
358 <listitem>
359 <para>A Perl version of the character encoding converter
360 <command>iconv</command></para>
361 <indexterm zone="ch-system-perl piconv">
362 <primary sortas="b-piconv">piconv</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
366
367 <varlistentry id="pl2pm">
368 <term><command>pl2pm</command></term>
369 <listitem>
370 <para>A rough tool for converting Perl4
371 <filename class="extension">.pl</filename> files to Perl5
372 <filename class="extension">.pm</filename> modules</para>
373 <indexterm zone="ch-system-perl pl2pm">
374 <primary sortas="b-pl2pm">pl2pm</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="pod2html">
380 <term><command>pod2html</command></term>
381 <listitem>
382 <para>Converts files from pod format to HTML format</para>
383 <indexterm zone="ch-system-perl pod2html">
384 <primary sortas="b-pod2html">pod2html</primary>
385 </indexterm>
386 </listitem>
387 </varlistentry>
388
389 <varlistentry id="pod2latex">
390 <term><command>pod2latex</command></term>
391 <listitem>
392 <para>Converts files from pod format to LaTeX format</para>
393 <indexterm zone="ch-system-perl pod2latex">
394 <primary sortas="b-pod2latex">pod2latex</primary>
395 </indexterm>
396 </listitem>
397 </varlistentry>
398
399 <varlistentry id="pod2man">
400 <term><command>pod2man</command></term>
401 <listitem>
402 <para>Converts pod data to formatted *roff input</para>
403 <indexterm zone="ch-system-perl pod2man">
404 <primary sortas="b-pod2man">pod2man</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408
409 <varlistentry id="pod2text">
410 <term><command>pod2text</command></term>
411 <listitem>
412 <para>Converts pod data to formatted ASCII text</para>
413 <indexterm zone="ch-system-perl pod2text">
414 <primary sortas="b-pod2text">pod2text</primary>
415 </indexterm>
416 </listitem>
417 </varlistentry>
418
419 <varlistentry id="pod2usage">
420 <term><command>pod2usage</command></term>
421 <listitem>
422 <para>Prints usage messages from embedded pod docs in files</para>
423 <indexterm zone="ch-system-perl pod2usage">
424 <primary sortas="b-pod2usage">pod2usage</primary>
425 </indexterm>
426 </listitem>
427 </varlistentry>
428
429 <varlistentry id="podchecker">
430 <term><command>podchecker</command></term>
431 <listitem>
432 <para>Checks the syntax of pod format documentation files</para>
433 <indexterm zone="ch-system-perl podchecker">
434 <primary sortas="b-podchecker">podchecker</primary>
435 </indexterm>
436 </listitem>
437 </varlistentry>
438
439 <varlistentry id="podselect">
440 <term><command>podselect</command></term>
441 <listitem>
442 <para>Displays selected sections of pod documentation</para>
443 <indexterm zone="ch-system-perl podselect">
444 <primary sortas="b-podselect">podselect</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
[e29fb58]449 <varlistentry id="prove">
450 <term><command>prove</command></term>
451 <listitem>
452 <para>A command-line tool for running tests against Test::Harness</para>
453 <indexterm zone="ch-system-perl prove">
454 <primary sortas="b-prove">prove</primary>
455 </indexterm>
456 </listitem>
457 </varlistentry>
458
[3f8be484]459 <varlistentry id="psed">
460 <term><command>psed</command></term>
461 <listitem>
462 <para>A Perl version of the stream editor <command>sed</command></para>
463 <indexterm zone="ch-system-perl psed">
464 <primary sortas="b-psed">psed</primary>
465 </indexterm>
466 </listitem>
467 </varlistentry>
468
469 <varlistentry id="pstruct">
470 <term><command>pstruct</command></term>
471 <listitem>
472 <para>Dumps C structures as generated from <command>cc -g -S</command>
473 stabs</para>
474 <indexterm zone="ch-system-perl pstruct">
475 <primary sortas="b-pstruct">pstruct</primary>
476 </indexterm>
477 </listitem>
478 </varlistentry>
479
[427015f]480 <varlistentry id="ptar">
481 <term><command>ptar</command></term>
482 <listitem>
483 <para>A <command>tar</command>-like program written in Perl</para>
484 <indexterm zone="ch-system-perl ptar">
485 <primary sortas="b-ptar">ptar</primary>
486 </indexterm>
487 </listitem>
488 </varlistentry>
489
490 <varlistentry id="ptardiff">
491 <term><command>ptardiff</command></term>
492 <listitem>
493 <para>A Perl program that compares an extracted archive with an
494 unextracted one</para>
495 <indexterm zone="ch-system-perl ptardiff">
496 <primary sortas="b-ptardiff">ptardiff</primary>
497 </indexterm>
498 </listitem>
499 </varlistentry>
500
[3f8be484]501 <varlistentry id="s2p">
502 <term><command>s2p</command></term>
503 <listitem>
504 <para>Translates <command>sed</command> to Perl</para>
505 <indexterm zone="ch-system-perl s2p">
506 <primary sortas="b-s2p">s2p</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
[427015f]511 <varlistentry id="shasum">
512 <term><command>shasum</command></term>
513 <listitem>
514 <para>Prints or checks SHA checksums</para>
515 <indexterm zone="ch-system-perl shasum">
516 <primary sortas="b-shasum">shasum</primary>
517 </indexterm>
518 </listitem>
519 </varlistentry>
520
[3f8be484]521 <varlistentry id="splain">
522 <term><command>splain</command></term>
523 <listitem>
524 <para>Is used to force verbose warning diagnostics in Perl</para>
525 <indexterm zone="ch-system-perl splain">
526 <primary sortas="b-splain">splain</primary>
527 </indexterm>
528 </listitem>
529 </varlistentry>
530
531 <varlistentry id="xsubpp">
532 <term><command>xsubpp</command></term>
533 <listitem>
534 <para>Converts Perl XS code into C code</para>
535 <indexterm zone="ch-system-perl xsubpp">
536 <primary sortas="b-xsubpp">xsubpp</primary>
537 </indexterm>
538 </listitem>
539 </varlistentry>
540
541 </variablelist>
542
543 </sect2>
544
545</sect1>
Note: See TracBrowser for help on using the repository browser.