source: chapter06/perl.xml@ 59af1dc

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

Updated the Perl instructions, thanks to Greg Shafer for pointing out the issues - This change also required that the Zlib package is built right before the Perl package in Chapter 6

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

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