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

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 42622bd was 42622bd, checked in by Jim Gifford <clfs@…>, 15 years ago

Added: -Dvendorprefix=/usr to perl

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