source: clfs-sysroot/BOOK/final-system/arm/perl.xml @ eb170af

Last change on this file since eb170af was eb170af, checked in by Chris Staub <chris@…>, 15 years ago

Cannot depend on host system having recent GNU sed

  • Property mode set to 100644
File size: 14.0 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    <warning os="w1">
29      <para>Building with <envar>CFLAGS</envar> or <envar>CXXFLAGS</envar> set
30      can cause the build to hang or fail.</para>
31    </warning>
32
33    <para os="p3">The following patch fixes issues with Perl and
34    cross-compiling:</para>
35
36<screen os="p4"><userinput>patch -Np1 -i ../&perl-cross_compile-patch;</userinput></screen>
37
38    <para os="s1">The following sed causes <filename>DynaLoader.a</filename>
39    to be built with -fPIC so it can be linked into a shared library
40    later:</para>
41
42<screen os="s2"><userinput>cp -v Makefile.SH{,.orig}
43sed -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
44    -e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH.orig > Makefile.SH</userinput></screen>
45
46    <para os="a">The Cross directory contains a Makefile for cross-compiling:</para>
47
48<screen os="b"><userinput>cd Cross</userinput></screen>
49
50    <para os="c">Compile the package:</para>
51
52<screen os="d"><userinput>make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
53
54    <para os="e">Install the package:</para>
55
56<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
57
58  </sect2>
59
60  <sect2 id="contents-perl" role="content">
61    <title>Contents of Perl</title>
62
63    <segmentedlist>
64      <segtitle>Installed programs</segtitle>
65      <segtitle>Installed libraries</segtitle>
66
67      <seglistitem>
68        <seg>a2p, c2ph, cpan, dprofpp, enc2xs, find2perl, h2ph, h2xs, instmodsh, libnetcfg,
69        perl, perl&perl-version; (link to perl), perlbug, perlcc, perldoc,
70        perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man, pod2text,
71        pod2usage, podchecker, podselect, prove, psed (link to s2p), pstruct (link
72        to c2ph), s2p, splain, and xsubpp</seg>
73        <seg>Several hundred which cannot all be listed here</seg>
74      </seglistitem>
75    </segmentedlist>
76
77    <variablelist>
78      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
79      <?dbfo list-presentation="list"?>
80      <?dbhtml list-presentation="table"?>
81
82      <varlistentry id="a2p">
83        <term><command>a2p</command></term>
84        <listitem>
85          <para>Translates awk to Perl</para>
86          <indexterm zone="ch-system-perl a2p">
87            <primary sortas="b-a2p">a2p</primary>
88          </indexterm>
89        </listitem>
90      </varlistentry>
91
92      <varlistentry id="c2ph">
93        <term><command>c2ph</command></term>
94        <listitem>
95          <para>Dumps C structures as generated from
96          <command>cc -g -S</command></para>
97          <indexterm zone="ch-system-perl c2ph">
98            <primary sortas="b-c2ph">c2ph</primary>
99          </indexterm>
100        </listitem>
101      </varlistentry>
102
103      <varlistentry id="cpan">
104        <term><command>cpan</command></term>
105        <listitem>
106          <para>Shell script that provides a command interface to CPAN.pm</para>
107          <indexterm zone="ch-system-perl cpan">
108            <primary sortas="b-cpan">cpan</primary>
109          </indexterm>
110        </listitem>
111      </varlistentry>
112
113      <varlistentry id="dprofpp">
114        <term><command>dprofpp</command></term>
115        <listitem>
116          <para>Displays Perl profile data</para>
117          <indexterm zone="ch-system-perl dprofpp">
118            <primary sortas="b-dprofpp">dprofpp</primary>
119          </indexterm>
120        </listitem>
121      </varlistentry>
122
123      <varlistentry id="enc2xs">
124        <term><command>enc2xs</command></term>
125        <listitem>
126          <para>Builds a Perl extension for the Encode module from either
127          Unicode Character Mappings or Tcl Encoding Files</para>
128          <indexterm zone="ch-system-perl enc2xs">
129            <primary sortas="b-enc2xs">enc2xs</primary>
130          </indexterm>
131        </listitem>
132      </varlistentry>
133
134      <varlistentry id="find2perl">
135        <term><command>find2perl</command></term>
136        <listitem>
137          <para>Translates <command>find</command> commands to Perl</para>
138          <indexterm zone="ch-system-perl find2perl">
139            <primary sortas="b-find2perl">find2perl</primary>
140          </indexterm>
141        </listitem>
142      </varlistentry>
143
144      <varlistentry id="h2ph">
145        <term><command>h2ph</command></term>
146        <listitem>
147          <para>Converts <filename class="extension">.h</filename> C header
148          files to <filename class="extension">.ph</filename> Perl header
149          files</para>
150          <indexterm zone="ch-system-perl h2ph">
151            <primary sortas="b-h2ph">h2ph</primary>
152          </indexterm>
153        </listitem>
154      </varlistentry>
155
156      <varlistentry id="h2xs">
157        <term><command>h2xs</command></term>
158        <listitem>
159          <para>Converts <filename class="extension">.h</filename> C header
160          files to Perl extensions</para>
161          <indexterm zone="ch-system-perl h2xs">
162            <primary sortas="b-h2xs">h2xs</primary>
163          </indexterm>
164        </listitem>
165      </varlistentry>
166
167      <varlistentry id="libnetcfg">
168        <term><command>libnetcfg</command></term>
169        <listitem>
170          <para>Can be used to configure the
171          <filename class="libraryfile">libnet</filename></para>
172          <indexterm zone="ch-system-perl libnetcfg">
173            <primary sortas="b-libnetcfg">libnetcfg</primary>
174          </indexterm>
175        </listitem>
176      </varlistentry>
177
178      <varlistentry id="instmodsh">
179        <term><command>instmodsh</command></term>
180        <listitem>
181          <para>A shell script for examining installed Perl modules,
182          and can even create a tarball from an installed module</para>
183          <indexterm zone="ch-system-perl instmodsh">
184            <primary sortas="b-instmodsh">instmodsh</primary>
185          </indexterm>
186        </listitem>
187      </varlistentry>
188
189      <varlistentry id="perl">
190        <term><command>perl</command></term>
191        <listitem>
192          <para>Combines some of the best features of C, <command>sed</command>,
193          <command>awk</command> and <command>sh</command> into a single
194          swiss-army-knife language</para>
195          <indexterm zone="ch-system-perl perl">
196            <primary sortas="b-perl">perl</primary>
197          </indexterm>
198        </listitem>
199      </varlistentry>
200
201      <varlistentry id="perl-version">
202        <term><command>perl&perl-version;</command></term>
203        <listitem>
204          <para>A hard link to <command>perl</command></para>
205          <indexterm zone="ch-system-perl perl-version">
206            <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
207          </indexterm>
208        </listitem>
209      </varlistentry>
210
211      <varlistentry id="perlbug">
212        <term><command>perlbug</command></term>
213        <listitem>
214          <para>Used to generate bug reports about Perl, or the modules that come
215          with it, and mail them</para>
216          <indexterm zone="ch-system-perl perlbug">
217            <primary sortas="b-perlbug">perlbug</primary>
218          </indexterm>
219        </listitem>
220      </varlistentry>
221
222      <varlistentry id="perlcc">
223        <term><command>perlcc</command></term>
224        <listitem>
225          <para>Generates executables from Perl programs</para>
226          <indexterm zone="ch-system-perl perlcc">
227            <primary sortas="b-perlcc">perlcc</primary>
228          </indexterm>
229        </listitem>
230      </varlistentry>
231
232      <varlistentry id="perldoc">
233        <term><command>perldoc</command></term>
234        <listitem>
235          <para>Displays a piece of documentation in pod format that is embedded
236          in the Perl installation tree or in a Perl script</para>
237          <indexterm zone="ch-system-perl perldoc">
238            <primary sortas="b-perldoc">perldoc</primary>
239          </indexterm>
240        </listitem>
241      </varlistentry>
242
243      <varlistentry id="perlivp">
244        <term><command>perlivp</command></term>
245        <listitem>
246          <para>The Perl Installation Verification Procedure; it can be used to
247          verify that Perl and its libraries have been installed
248          correctly</para>
249          <indexterm zone="ch-system-perl perlivp">
250            <primary sortas="b-perlivp">perlivp</primary>
251          </indexterm>
252        </listitem>
253      </varlistentry>
254
255      <varlistentry id="piconv">
256        <term><command>piconv</command></term>
257        <listitem>
258          <para>A Perl version of the character encoding converter
259          <command>iconv</command></para>
260          <indexterm zone="ch-system-perl piconv">
261            <primary sortas="b-piconv">piconv</primary>
262          </indexterm>
263        </listitem>
264      </varlistentry>
265
266      <varlistentry id="pl2pm">
267        <term><command>pl2pm</command></term>
268        <listitem>
269          <para>A rough tool for converting Perl4
270          <filename class="extension">.pl</filename> files to Perl5
271          <filename class="extension">.pm</filename> modules</para>
272          <indexterm zone="ch-system-perl pl2pm">
273            <primary sortas="b-pl2pm">pl2pm</primary>
274          </indexterm>
275        </listitem>
276      </varlistentry>
277
278      <varlistentry id="pod2html">
279        <term><command>pod2html</command></term>
280        <listitem>
281          <para>Converts files from pod format to HTML format</para>
282          <indexterm zone="ch-system-perl pod2html">
283            <primary sortas="b-pod2html">pod2html</primary>
284          </indexterm>
285        </listitem>
286      </varlistentry>
287
288      <varlistentry id="pod2latex">
289        <term><command>pod2latex</command></term>
290        <listitem>
291          <para>Converts files from pod format to LaTeX format</para>
292          <indexterm zone="ch-system-perl pod2latex">
293            <primary sortas="b-pod2latex">pod2latex</primary>
294          </indexterm>
295        </listitem>
296      </varlistentry>
297
298      <varlistentry id="pod2man">
299        <term><command>pod2man</command></term>
300        <listitem>
301          <para>Converts pod data to formatted *roff input</para>
302          <indexterm zone="ch-system-perl pod2man">
303            <primary sortas="b-pod2man">pod2man</primary>
304          </indexterm>
305        </listitem>
306      </varlistentry>
307
308      <varlistentry id="pod2text">
309        <term><command>pod2text</command></term>
310        <listitem>
311          <para>Converts pod data to formatted ASCII text</para>
312          <indexterm zone="ch-system-perl pod2text">
313            <primary sortas="b-pod2text">pod2text</primary>
314          </indexterm>
315        </listitem>
316      </varlistentry>
317
318      <varlistentry id="pod2usage">
319        <term><command>pod2usage</command></term>
320        <listitem>
321          <para>Prints usage messages from embedded pod docs in files</para>
322          <indexterm zone="ch-system-perl pod2usage">
323            <primary sortas="b-pod2usage">pod2usage</primary>
324          </indexterm>
325        </listitem>
326      </varlistentry>
327
328      <varlistentry id="podchecker">
329        <term><command>podchecker</command></term>
330        <listitem>
331          <para>Checks the syntax of pod format documentation files</para>
332          <indexterm zone="ch-system-perl podchecker">
333            <primary sortas="b-podchecker">podchecker</primary>
334          </indexterm>
335        </listitem>
336      </varlistentry>
337
338      <varlistentry id="podselect">
339        <term><command>podselect</command></term>
340        <listitem>
341          <para>Displays selected sections of pod documentation</para>
342          <indexterm zone="ch-system-perl podselect">
343            <primary sortas="b-podselect">podselect</primary>
344          </indexterm>
345        </listitem>
346      </varlistentry>
347
348      <varlistentry id="prove">
349        <term><command>prove</command></term>
350        <listitem>
351          <para>A command-line tool for running tests against Test::Harness</para>
352          <indexterm zone="ch-system-perl prove">
353            <primary sortas="b-prove">prove</primary>
354          </indexterm>
355        </listitem>
356      </varlistentry>
357
358      <varlistentry id="psed">
359        <term><command>psed</command></term>
360        <listitem>
361          <para>A Perl version of the stream editor <command>sed</command></para>
362          <indexterm zone="ch-system-perl psed">
363            <primary sortas="b-psed">psed</primary>
364          </indexterm>
365        </listitem>
366      </varlistentry>
367
368      <varlistentry id="pstruct">
369        <term><command>pstruct</command></term>
370        <listitem>
371          <para>Dumps C structures as generated from <command>cc -g -S</command>
372          stabs</para>
373          <indexterm zone="ch-system-perl pstruct">
374            <primary sortas="b-pstruct">pstruct</primary>
375          </indexterm>
376        </listitem>
377      </varlistentry>
378
379      <varlistentry id="s2p">
380        <term><command>s2p</command></term>
381        <listitem>
382          <para>Translates <command>sed</command> to Perl</para>
383          <indexterm zone="ch-system-perl s2p">
384            <primary sortas="b-s2p">s2p</primary>
385          </indexterm>
386        </listitem>
387      </varlistentry>
388
389      <varlistentry id="splain">
390        <term><command>splain</command></term>
391        <listitem>
392          <para>Is used to force verbose warning diagnostics in Perl</para>
393          <indexterm zone="ch-system-perl splain">
394            <primary sortas="b-splain">splain</primary>
395          </indexterm>
396        </listitem>
397      </varlistentry>
398
399      <varlistentry id="xsubpp">
400        <term><command>xsubpp</command></term>
401        <listitem>
402          <para>Converts Perl XS code into C code</para>
403          <indexterm zone="ch-system-perl xsubpp">
404            <primary sortas="b-xsubpp">xsubpp</primary>
405          </indexterm>
406        </listitem>
407      </varlistentry>
408
409    </variablelist>
410
411  </sect2>
412
413</sect1>
Note: See TracBrowser for help on using the repository browser.