source: chapter06/perl.xml@ 0445a3d

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 0445a3d was 0445a3d, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Added remap attributes to userinput tags in packages pages.

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

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