source: chapter06/perl.xml@ 863beea

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 863beea was 863beea, checked in by Bruce Dubbs <bdubbs@…>, 16 years ago

Fixed perl configuration so it knows the vendor library location.
Changes perl patches to a single consolidated patch with security and other fixes

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

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