source: chapter06/perl.xml@ 742cc9ae

Last change on this file since 742cc9ae was f372d5a, checked in by Jeremy Huntwork <jhuntwork@…>, 17 years ago

Fix Perl-5.8.8 to build with GCC-4.2.1.
Have makedepend.SH check for 'command-line' as well as 'command line'.

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

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