source: chapter06/perl.xml@ 3f3931b0

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 3f3931b0 was 3f3931b0, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Indenting chapter 6, part 9

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