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

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 36da727 was 36da727, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Text Cleanup.

  • Property mode set to 100644
File size: 16.1 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="p1">The following patch causes makedepend.sh to also remove
29    <literal>&lt;command-line&gt;</literal> as well as
30    <literal>&lt;command line&gt;</literal>:</para>
31
32<screen os="p2"><userinput>patch -Np1 -i ../&perl-gcc42_fix-patch;</userinput></screen>
33
34    <para os="p3">The following patch prevents perl from including asm/page.h
35    which will no longer be available in headers provided by kernel 2.6.25 and
36    forward:</para>
37
38<screen os="p4"><userinput>patch -Np1 -i ../&perl-no_page_h-patch;</userinput></screen>
39
40    <para os="s1">The following sed causes <filename>DynaLoader.a</filename>
41    to be built with -fPIC so it can be linked into a shared library
42    later:</para>
43
44<screen os="s2"><userinput>sed -i -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
45    -e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH</userinput></screen>
46
47    <note os="a00">
48      <para>If you are following the boot method you will need to enable the
49      loopback device as well as set a hostname for some of the tests:</para>
50
51      <screen><userinput>ip link set lo up
52hostname clfs</userinput></screen>
53    </note>
54
55    <para os="a01">Before starting to configure, create a basic
56    <filename>/etc/hosts</filename> file which will be referenced by one
57    of Perl's configuration files as well as used by the testsuite:</para>
58
59<screen os="a02"><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
60
61    <para os="a">To have full control over the way Perl is set up, you can
62    run the interactive <command>Configure</command> script and hand-pick
63    the way this package is built. If you prefer instead to use the defaults
64    that Perl auto-detects, prepare Perl for compilation with:</para>
65
66<screen os="b"><userinput>CC=gcc ./configure.gnu --prefix=/usr \
67   -Dman1dir=/usr/share/man/man1 \
68   -Dman3dir=/usr/share/man/man3 \
69   -Dpager="/bin/less -isR" \
70   -Dusethreads</userinput></screen>
71
72    <variablelist os="c">
73      <title>The meaning of the configure option:</title>
74
75      <varlistentry os="c1">
76        <term><parameter>-Dpager="/bin/less -isR"</parameter></term>
77        <listitem>
78          <para>This corrects an error in the way that <command>perldoc</command>
79          invokes the <command>less</command> program.</para>
80        </listitem>
81      </varlistentry>
82      <varlistentry os="c2">
83        <term><parameter>-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3</parameter></term>
84        <listitem>
85          <para>Since Groff is not installed yet,
86          <command>configure.gnu</command> thinks that we do not want
87          man pages for Perl. Issuing these parameters overrides this decision.</para>
88        </listitem>
89      </varlistentry>
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    </variablelist>
97
98    <para os="d">Compile the package:</para>
99
100<screen os="e"><userinput>make</userinput></screen>
101
102    <para os="h">To test the results, issue:
103    <userinput>make test</userinput>.</para>
104
105    <para os="j">Install the package:</para>
106
107<screen os="k"><userinput>make install</userinput></screen>
108
109  </sect2>
110
111  <sect2 id="contents-perl" role="content">
112    <title>Contents of Perl</title>
113
114    <segmentedlist>
115      <segtitle>Installed programs</segtitle>
116      <segtitle>Installed libraries</segtitle>
117
118      <seglistitem>
119        <seg>a2p, c2ph, cpan, dprofpp, enc2xs, find2perl, h2ph, h2xs, instmodsh, libnetcfg,
120        perl, perl&perl-version; (link to perl), perlbug, perlcc, perldoc,
121        perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man, pod2text,
122        pod2usage, podchecker, podselect, prove, psed (link to s2p), pstruct (link
123        to c2ph), s2p, splain, and xsubpp</seg>
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
154      <varlistentry id="cpan">
155        <term><command>cpan</command></term>
156        <listitem>
157          <para>Shell script that provides a command interface to CPAN.pm</para>
158          <indexterm zone="ch-system-perl cpan">
159            <primary sortas="b-cpan">cpan</primary>
160          </indexterm>
161        </listitem>
162      </varlistentry>
163
164      <varlistentry id="dprofpp">
165        <term><command>dprofpp</command></term>
166        <listitem>
167          <para>Displays Perl profile data</para>
168          <indexterm zone="ch-system-perl dprofpp">
169            <primary sortas="b-dprofpp">dprofpp</primary>
170          </indexterm>
171        </listitem>
172      </varlistentry>
173
174      <varlistentry id="enc2xs">
175        <term><command>enc2xs</command></term>
176        <listitem>
177          <para>Builds a Perl extension for the Encode module from either
178          Unicode Character Mappings or Tcl Encoding Files</para>
179          <indexterm zone="ch-system-perl enc2xs">
180            <primary sortas="b-enc2xs">enc2xs</primary>
181          </indexterm>
182        </listitem>
183      </varlistentry>
184
185      <varlistentry id="find2perl">
186        <term><command>find2perl</command></term>
187        <listitem>
188          <para>Translates <command>find</command> commands to Perl</para>
189          <indexterm zone="ch-system-perl find2perl">
190            <primary sortas="b-find2perl">find2perl</primary>
191          </indexterm>
192        </listitem>
193      </varlistentry>
194
195      <varlistentry id="h2ph">
196        <term><command>h2ph</command></term>
197        <listitem>
198          <para>Converts <filename class="extension">.h</filename> C header
199          files to <filename class="extension">.ph</filename> Perl header
200          files</para>
201          <indexterm zone="ch-system-perl h2ph">
202            <primary sortas="b-h2ph">h2ph</primary>
203          </indexterm>
204        </listitem>
205      </varlistentry>
206
207      <varlistentry id="h2xs">
208        <term><command>h2xs</command></term>
209        <listitem>
210          <para>Converts <filename class="extension">.h</filename> C header
211          files to Perl extensions</para>
212          <indexterm zone="ch-system-perl h2xs">
213            <primary sortas="b-h2xs">h2xs</primary>
214          </indexterm>
215        </listitem>
216      </varlistentry>
217
218      <varlistentry id="libnetcfg">
219        <term><command>libnetcfg</command></term>
220        <listitem>
221          <para>Can be used to configure the
222          <filename class="libraryfile">libnet</filename></para>
223          <indexterm zone="ch-system-perl libnetcfg">
224            <primary sortas="b-libnetcfg">libnetcfg</primary>
225          </indexterm>
226        </listitem>
227      </varlistentry>
228
229      <varlistentry id="instmodsh">
230        <term><command>instmodsh</command></term>
231        <listitem>
232          <para>A shell script for examining installed Perl modules,
233          and can even create a tarball from an installed module</para>
234          <indexterm zone="ch-system-perl instmodsh">
235            <primary sortas="b-instmodsh">instmodsh</primary>
236          </indexterm>
237        </listitem>
238      </varlistentry>
239
240      <varlistentry id="perl">
241        <term><command>perl</command></term>
242        <listitem>
243          <para>Combines some of the best features of C, <command>sed</command>,
244          <command>awk</command> and <command>sh</command> into a single
245          swiss-army-knife language</para>
246          <indexterm zone="ch-system-perl perl">
247            <primary sortas="b-perl">perl</primary>
248          </indexterm>
249        </listitem>
250      </varlistentry>
251
252      <varlistentry id="perl-version">
253        <term><command>perl&perl-version;</command></term>
254        <listitem>
255          <para>A hard link to <command>perl</command></para>
256          <indexterm zone="ch-system-perl perl-version">
257            <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
258          </indexterm>
259        </listitem>
260      </varlistentry>
261
262      <varlistentry id="perlbug">
263        <term><command>perlbug</command></term>
264        <listitem>
265          <para>Used to generate bug reports about Perl, or the modules that come
266          with it, and mail them</para>
267          <indexterm zone="ch-system-perl perlbug">
268            <primary sortas="b-perlbug">perlbug</primary>
269          </indexterm>
270        </listitem>
271      </varlistentry>
272
273      <varlistentry id="perlcc">
274        <term><command>perlcc</command></term>
275        <listitem>
276          <para>Generates executables from Perl programs</para>
277          <indexterm zone="ch-system-perl perlcc">
278            <primary sortas="b-perlcc">perlcc</primary>
279          </indexterm>
280        </listitem>
281      </varlistentry>
282
283      <varlistentry id="perldoc">
284        <term><command>perldoc</command></term>
285        <listitem>
286          <para>Displays a piece of documentation in pod format that is embedded
287          in the Perl installation tree or in a Perl script</para>
288          <indexterm zone="ch-system-perl perldoc">
289            <primary sortas="b-perldoc">perldoc</primary>
290          </indexterm>
291        </listitem>
292      </varlistentry>
293
294      <varlistentry id="perlivp">
295        <term><command>perlivp</command></term>
296        <listitem>
297          <para>The Perl Installation Verification Procedure; it can be used to
298          verify that Perl and its libraries have been installed
299          correctly</para>
300          <indexterm zone="ch-system-perl perlivp">
301            <primary sortas="b-perlivp">perlivp</primary>
302          </indexterm>
303        </listitem>
304      </varlistentry>
305
306      <varlistentry id="piconv">
307        <term><command>piconv</command></term>
308        <listitem>
309          <para>A Perl version of the character encoding converter
310          <command>iconv</command></para>
311          <indexterm zone="ch-system-perl piconv">
312            <primary sortas="b-piconv">piconv</primary>
313          </indexterm>
314        </listitem>
315      </varlistentry>
316
317      <varlistentry id="pl2pm">
318        <term><command>pl2pm</command></term>
319        <listitem>
320          <para>A rough tool for converting Perl4
321          <filename class="extension">.pl</filename> files to Perl5
322          <filename class="extension">.pm</filename> modules</para>
323          <indexterm zone="ch-system-perl pl2pm">
324            <primary sortas="b-pl2pm">pl2pm</primary>
325          </indexterm>
326        </listitem>
327      </varlistentry>
328
329      <varlistentry id="pod2html">
330        <term><command>pod2html</command></term>
331        <listitem>
332          <para>Converts files from pod format to HTML format</para>
333          <indexterm zone="ch-system-perl pod2html">
334            <primary sortas="b-pod2html">pod2html</primary>
335          </indexterm>
336        </listitem>
337      </varlistentry>
338
339      <varlistentry id="pod2latex">
340        <term><command>pod2latex</command></term>
341        <listitem>
342          <para>Converts files from pod format to LaTeX format</para>
343          <indexterm zone="ch-system-perl pod2latex">
344            <primary sortas="b-pod2latex">pod2latex</primary>
345          </indexterm>
346        </listitem>
347      </varlistentry>
348
349      <varlistentry id="pod2man">
350        <term><command>pod2man</command></term>
351        <listitem>
352          <para>Converts pod data to formatted *roff input</para>
353          <indexterm zone="ch-system-perl pod2man">
354            <primary sortas="b-pod2man">pod2man</primary>
355          </indexterm>
356        </listitem>
357      </varlistentry>
358
359      <varlistentry id="pod2text">
360        <term><command>pod2text</command></term>
361        <listitem>
362          <para>Converts pod data to formatted ASCII text</para>
363          <indexterm zone="ch-system-perl pod2text">
364            <primary sortas="b-pod2text">pod2text</primary>
365          </indexterm>
366        </listitem>
367      </varlistentry>
368
369      <varlistentry id="pod2usage">
370        <term><command>pod2usage</command></term>
371        <listitem>
372          <para>Prints usage messages from embedded pod docs in files</para>
373          <indexterm zone="ch-system-perl pod2usage">
374            <primary sortas="b-pod2usage">pod2usage</primary>
375          </indexterm>
376        </listitem>
377      </varlistentry>
378
379      <varlistentry id="podchecker">
380        <term><command>podchecker</command></term>
381        <listitem>
382          <para>Checks the syntax of pod format documentation files</para>
383          <indexterm zone="ch-system-perl podchecker">
384            <primary sortas="b-podchecker">podchecker</primary>
385          </indexterm>
386        </listitem>
387      </varlistentry>
388
389      <varlistentry id="podselect">
390        <term><command>podselect</command></term>
391        <listitem>
392          <para>Displays selected sections of pod documentation</para>
393          <indexterm zone="ch-system-perl podselect">
394            <primary sortas="b-podselect">podselect</primary>
395          </indexterm>
396        </listitem>
397      </varlistentry>
398
399      <varlistentry id="prove">
400        <term><command>prove</command></term>
401        <listitem>
402          <para>A command-line tool for running tests against Test::Harness</para>
403          <indexterm zone="ch-system-perl prove">
404            <primary sortas="b-prove">prove</primary>
405          </indexterm>
406        </listitem>
407      </varlistentry>
408
409      <varlistentry id="psed">
410        <term><command>psed</command></term>
411        <listitem>
412          <para>A Perl version of the stream editor <command>sed</command></para>
413          <indexterm zone="ch-system-perl psed">
414            <primary sortas="b-psed">psed</primary>
415          </indexterm>
416        </listitem>
417      </varlistentry>
418
419      <varlistentry id="pstruct">
420        <term><command>pstruct</command></term>
421        <listitem>
422          <para>Dumps C structures as generated from <command>cc -g -S</command>
423          stabs</para>
424          <indexterm zone="ch-system-perl pstruct">
425            <primary sortas="b-pstruct">pstruct</primary>
426          </indexterm>
427        </listitem>
428      </varlistentry>
429
430      <varlistentry id="s2p">
431        <term><command>s2p</command></term>
432        <listitem>
433          <para>Translates <command>sed</command> to Perl</para>
434          <indexterm zone="ch-system-perl s2p">
435            <primary sortas="b-s2p">s2p</primary>
436          </indexterm>
437        </listitem>
438      </varlistentry>
439
440      <varlistentry id="splain">
441        <term><command>splain</command></term>
442        <listitem>
443          <para>Is used to force verbose warning diagnostics in Perl</para>
444          <indexterm zone="ch-system-perl splain">
445            <primary sortas="b-splain">splain</primary>
446          </indexterm>
447        </listitem>
448      </varlistentry>
449
450      <varlistentry id="xsubpp">
451        <term><command>xsubpp</command></term>
452        <listitem>
453          <para>Converts Perl XS code into C code</para>
454          <indexterm zone="ch-system-perl xsubpp">
455            <primary sortas="b-xsubpp">xsubpp</primary>
456          </indexterm>
457        </listitem>
458      </varlistentry>
459
460    </variablelist>
461
462  </sect2>
463
464</sect1>
Note: See TracBrowser for help on using the repository browser.