source: chapter06/perl.xml@ 4cb347e

Last change on this file since 4cb347e was 28b40e2, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Finished the PDF fixes.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.2/BOOK@7737 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 14.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>&perl-ch6-sbu;</seg>
29 <seg>&perl-ch6-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Perl</title>
37
38 <para>First create a basic <filename>/etc/hosts</filename> file which will be
39 referenced in one of Perl's configuration files as well as being used used by
40 the testsuite if you run that.</para>
41
42<screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
43
44 <para>To have full control over the way Perl is set up, run the
45 interactive <command>Configure</command> script and hand-pick the way
46 this package is built. If the defaults it auto-detects are suitable,
47 prepare Perl for compilation with:</para>
48
49<screen><userinput>./configure.gnu --prefix=/usr \
50 -Dman1dir=/usr/share/man/man1 \
51 -Dman3dir=/usr/share/man/man3 \
52 -Dpager="/usr/bin/less -isR"</userinput></screen>
53
54 <variablelist>
55 <title>The meaning of the configure options:</title>
56
57 <varlistentry>
58 <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
59 <listitem>
60 <para>This corrects an error in the way that <command>perldoc</command>
61 invokes the <command>less</command> program.</para>
62 </listitem>
63 </varlistentry>
64
65 <varlistentry>
66 <term><parameter>-Dman1dir=/usr/share/man/man1
67 -Dman3dir=/usr/share/man/man3</parameter></term>
68 <listitem>
69 <para>Since Groff is not installed yet, <command>Configure</command>
70 thinks that we do not want man pages for Perl. Issuing these
71 parameters overrides this decision.</para>
72 </listitem>
73 </varlistentry>
74
75 </variablelist>
76
77 <para>Compile the package:</para>
78
79<screen><userinput>make</userinput></screen>
80
81 <para>To test the results, issue:
82 <userinput>make test</userinput>.</para>
83
84 <para>Install the package:</para>
85
86<screen><userinput>make install</userinput></screen>
87
88 <beginpage/>
89
90 </sect2>
91
92 <sect2 id="contents-perl" role="content">
93 <title>Contents of Perl</title>
94
95 <segmentedlist>
96 <segtitle>Installed programs</segtitle>
97 <segtitle>Installed libraries</segtitle>
98
99 <seglistitem>
100 <seg>a2p, c2ph, dprofpp, enc2xs, find2perl, h2ph, h2xs, instmodsh, libnetcfg, perl,
101 perl&perl-version; (link to perl), perlbug, perlcc, perldoc, perlivp,
102 piconv, pl2pm, pod2html, pod2latex, pod2man, pod2text, pod2usage,
103 podchecker, podselect, psed (link to s2p), pstruct (link to c2ph), s2p,
104 splain, and xsubpp</seg>
105 <seg>Several hundred which cannot all be listed here</seg>
106 </seglistitem>
107 </segmentedlist>
108
109 <variablelist>
110 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
111 <?dbfo list-presentation="list"?>
112 <?dbhtml list-presentation="table"?>
113
114 <varlistentry id="a2p">
115 <term><command>a2p</command></term>
116 <listitem>
117 <para>Translates awk to Perl</para>
118 <indexterm zone="ch-system-perl a2p">
119 <primary sortas="b-a2p">a2p</primary>
120 </indexterm>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry id="c2ph">
125 <term><command>c2ph</command></term>
126 <listitem>
127 <para>Dumps C structures as generated from
128 <command>cc -g -S</command></para>
129 <indexterm zone="ch-system-perl c2ph">
130 <primary sortas="b-c2ph">c2ph</primary>
131 </indexterm>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry id="dprofpp">
136 <term><command>dprofpp</command></term>
137 <listitem>
138 <para>Displays Perl profile data</para>
139 <indexterm zone="ch-system-perl dprofpp">
140 <primary sortas="b-dprofpp">dprofpp</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="enc2xs">
146 <term><command>enc2xs</command></term>
147 <listitem>
148 <para>Builds a Perl extension for the Encode module from either
149 Unicode Character Mappings or Tcl Encoding Files</para>
150 <indexterm zone="ch-system-perl enc2xs">
151 <primary sortas="b-enc2xs">enc2xs</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="find2perl">
157 <term><command>find2perl</command></term>
158 <listitem>
159 <para>Translates <command>find</command> commands to Perl</para>
160 <indexterm zone="ch-system-perl find2perl">
161 <primary sortas="b-find2perl">find2perl</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="h2ph">
167 <term><command>h2ph</command></term>
168 <listitem>
169 <para>Converts <filename class="extension">.h</filename> C header
170 files to <filename class="extension">.ph</filename> Perl header
171 files</para>
172 <indexterm zone="ch-system-perl h2ph">
173 <primary sortas="b-h2ph">h2ph</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="h2xs">
179 <term><command>h2xs</command></term>
180 <listitem>
181 <para>Converts <filename class="extension">.h</filename> C header
182 files to Perl extensions</para>
183 <indexterm zone="ch-system-perl h2xs">
184 <primary sortas="b-h2xs">h2xs</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="instmodsh">
190 <term><command>instmodsh</command></term>
191 <listitem>
192 <para>Shell script for examining installed Perl modules,
193 and can even create a tarball from an installed module</para>
194 <indexterm zone="ch-system-perl instmodsh">
195 <primary sortas="b-instmodsh">instmodsh</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="libnetcfg">
201 <term><command>libnetcfg</command></term>
202 <listitem>
203 <para>Can be used to configure the
204 <filename class="libraryfile">libnet</filename></para>
205 <indexterm zone="ch-system-perl libnetcfg">
206 <primary sortas="b-libnetcfg">libnetcfg</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="perl">
212 <term><command>perl</command></term>
213 <listitem>
214 <para>Combines some of the best features of C, <command>sed</command>,
215 <command>awk</command> and <command>sh</command> into a single
216 swiss-army language</para>
217 <indexterm zone="ch-system-perl perl">
218 <primary sortas="b-perl">perl</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 <varlistentry id="perl-version">
224 <term><command>perl&perl-version;</command></term>
225 <listitem>
226 <para>A hard link to <command>perl</command></para>
227 <indexterm zone="ch-system-perl perl-version">
228 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="perlbug">
234 <term><command>perlbug</command></term>
235 <listitem>
236 <para>Used to generate bug reports about Perl, or the modules that come
237 with it, and mail them</para>
238 <indexterm zone="ch-system-perl perlbug">
239 <primary sortas="b-perlbug">perlbug</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="perlcc">
245 <term><command>perlcc</command></term>
246 <listitem>
247 <para>Generates executables from Perl programs</para>
248 <indexterm zone="ch-system-perl perlcc">
249 <primary sortas="b-perlcc">perlcc</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="perldoc">
255 <term><command>perldoc</command></term>
256 <listitem>
257 <para>Displays a piece of documentation in pod format that is embedded
258 in the Perl installation tree or in a Perl script</para>
259 <indexterm zone="ch-system-perl perldoc">
260 <primary sortas="b-perldoc">perldoc</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="perlivp">
266 <term><command>perlivp</command></term>
267 <listitem>
268 <para>The Perl Installation Verification Procedure; it can be used to
269 verify that Perl and its libraries have been installed
270 correctly</para>
271 <indexterm zone="ch-system-perl perlivp">
272 <primary sortas="b-perlivp">perlivp</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 <varlistentry id="piconv">
278 <term><command>piconv</command></term>
279 <listitem>
280 <para>A Perl version of the character encoding converter
281 <command>iconv</command></para>
282 <indexterm zone="ch-system-perl piconv">
283 <primary sortas="b-piconv">piconv</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry id="pl2pm">
289 <term><command>pl2pm</command></term>
290 <listitem>
291 <para>A rough tool for converting Perl4
292 <filename class="extension">.pl</filename> files to Perl5
293 <filename class="extension">.pm</filename> modules</para>
294 <indexterm zone="ch-system-perl pl2pm">
295 <primary sortas="b-pl2pm">pl2pm</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="pod2html">
301 <term><command>pod2html</command></term>
302 <listitem>
303 <para>Converts files from pod format to HTML format</para>
304 <indexterm zone="ch-system-perl pod2html">
305 <primary sortas="b-pod2html">pod2html</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry id="pod2latex">
311 <term><command>pod2latex</command></term>
312 <listitem>
313 <para>Converts files from pod format to LaTeX format</para>
314 <indexterm zone="ch-system-perl pod2latex">
315 <primary sortas="b-pod2latex">pod2latex</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="pod2man">
321 <term><command>pod2man</command></term>
322 <listitem>
323 <para>Converts pod data to formatted *roff input</para>
324 <indexterm zone="ch-system-perl pod2man">
325 <primary sortas="b-pod2man">pod2man</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="pod2text">
331 <term><command>pod2text</command></term>
332 <listitem>
333 <para>Converts pod data to formatted ASCII text</para>
334 <indexterm zone="ch-system-perl pod2text">
335 <primary sortas="b-pod2text">pod2text</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="pod2usage">
341 <term><command>pod2usage</command></term>
342 <listitem>
343 <para>Prints usage messages from embedded pod docs in files</para>
344 <indexterm zone="ch-system-perl pod2usage">
345 <primary sortas="b-pod2usage">pod2usage</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="podchecker">
351 <term><command>podchecker</command></term>
352 <listitem>
353 <para>Checks the syntax of pod format documentation files</para>
354 <indexterm zone="ch-system-perl podchecker">
355 <primary sortas="b-podchecker">podchecker</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
360 <varlistentry id="podselect">
361 <term><command>podselect</command></term>
362 <listitem>
363 <para>Displays selected sections of pod documentation</para>
364 <indexterm zone="ch-system-perl podselect">
365 <primary sortas="b-podselect">podselect</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
370 <varlistentry id="psed">
371 <term><command>psed</command></term>
372 <listitem>
373 <para>A Perl version of the stream editor <command>sed</command></para>
374 <indexterm zone="ch-system-perl psed">
375 <primary sortas="b-psed">psed</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
380 <varlistentry id="pstruct">
381 <term><command>pstruct</command></term>
382 <listitem>
383 <para>Dumps C structures as generated from <command>cc -g -S</command>
384 stabs</para>
385 <indexterm zone="ch-system-perl pstruct">
386 <primary sortas="b-pstruct">pstruct</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="s2p">
392 <term><command>s2p</command></term>
393 <listitem>
394 <para>Translates <command>sed</command> scripts to Perl</para>
395 <indexterm zone="ch-system-perl s2p">
396 <primary sortas="b-s2p">s2p</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 <varlistentry id="splain">
402 <term><command>splain</command></term>
403 <listitem>
404 <para>Is used to force verbose warning diagnostics in Perl</para>
405 <indexterm zone="ch-system-perl splain">
406 <primary sortas="b-splain">splain</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="xsubpp">
412 <term><command>xsubpp</command></term>
413 <listitem>
414 <para>Converts Perl XS code into C code</para>
415 <indexterm zone="ch-system-perl xsubpp">
416 <primary sortas="b-xsubpp">xsubpp</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
421 </variablelist>
422
423 </sect2>
424
425</sect1>
Note: See TracBrowser for help on using the repository browser.