source: chapter06/perl.xml@ b0a4c9a

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since b0a4c9a was b0a4c9a, checked in by Jeremy Huntwork <jhuntwork@…>, 17 years ago

Upgrade to GCC-4.2.1. Fixes #2002. Merged from jh branch, thanks to Matthew Burgess for preparing a discrete patch.

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

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