source: chapter06/perl.xml@ 080e8f8

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 080e8f8 was 080e8f8, checked in by Randy McMurchy <randy@…>, 16 years ago

Updated Perl to 5.10.0

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

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