source: chapter06/perl.xml@ 3685bb6

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.3 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 3685bb6 was 3685bb6, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Merged alphabetical branch to trunk.

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

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