source: BOOK/final-system/common/perl.xml@ 61ad0b7f

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 61ad0b7f was 61ad0b7f, checked in by Chris Staub <chris@…>, 15 years ago

Added installed directory info for a number of packages

  • Property mode set to 100644
File size: 18.8 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 <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 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Perl</title>
27
28 <para os="s1">The following sed causes <filename>DynaLoader.a</filename>
29 to be built with -fPIC so it can be linked into a shared library
30 later:</para>
31
32<screen os="s2"><userinput>sed -i -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
33 -e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH</userinput></screen>
34
35 <para os="s3">By default, Perl's Compress::Raw::Zlib module builds and
36 links against its own internal copy of Zlib. The following command will
37 tell it to use the system-installed Zlib:</para>
38
39<screen os="s4"><userinput>sed -i -e '/^BUILD_ZLIB/ s/True/False/' \
40 -e '/^INCLUDE/s|\./zlib-src|/usr/include|' \
41 -e '/^LIB/s|\./zlib-src|/usr/lib|' \
42 ext/Compress-Raw-Zlib/config.in</userinput></screen>
43
44 <note os="a00">
45 <para>If you are following the boot method you will need to enable the
46 loopback device as well as set a hostname for some of the tests:</para>
47
48 <screen><userinput>ip link set lo up
49hostname clfs</userinput></screen>
50 </note>
51
52 <para os="a01">Before starting to configure, create a basic
53 <filename>/etc/hosts</filename> file which will be referenced by one
54 of Perl's configuration files as well as used by the testsuite:</para>
55
56<screen os="a02"><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
57
58 <para os="a">To have full control over the way Perl is set up, you can
59 run the interactive <command>Configure</command> script and hand-pick
60 the way this package is built. If you prefer instead to use the defaults
61 that Perl auto-detects, prepare Perl for compilation with:</para>
62
63<screen os="b"><userinput>./configure.gnu --prefix=/usr \
64 -Dvendorprefix=/usr \
65 -Dman1dir=/usr/share/man/man1 \
66 -Dman3dir=/usr/share/man/man3 \
67 -Dpager="/bin/less -isR" \
68 -Dusethreads -Duseshrplib</userinput></screen>
69
70 <variablelist os="c">
71 <title>The meaning of the configure option:</title>
72
73 <varlistentry os="c1">
74 <term><parameter>-Dpager="/bin/less -isR"</parameter></term>
75 <listitem>
76 <para>This corrects an error in the way that <command>perldoc</command>
77 invokes the <command>less</command> program.</para>
78 </listitem>
79 </varlistentry>
80
81 <varlistentry os="c2">
82 <term><parameter>-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3</parameter></term>
83 <listitem>
84 <para>Since Groff is not installed yet,
85 <command>configure.gnu</command> thinks that we do not want
86 man pages for Perl. Issuing these parameters overrides this decision.</para>
87 </listitem>
88 </varlistentry>
89
90 <varlistentry os="c3">
91 <term><parameter>-Dusethreads</parameter></term>
92 <listitem>
93 <para>This tells Perl to use threads.</para>
94 </listitem>
95 </varlistentry>
96
97 <varlistentry os="c4">
98 <term><parameter>-Duseshrplib</parameter></term>
99 <listitem>
100 <para>This tells Perl to build a shared libperl.</para>
101 </listitem>
102 </varlistentry>
103
104 </variablelist>
105
106 <para os="d">Compile the package:</para>
107
108<screen os="e"><userinput>make</userinput></screen>
109
110 <para os="h">To test the results, issue:
111 <userinput>make test</userinput>.</para>
112
113 <para os="j">Install the package:</para>
114
115<screen os="k"><userinput>make install</userinput></screen>
116
117 </sect2>
118
119 <sect2 id="contents-perl" role="content">
120 <title>Contents of Perl</title>
121
122 <segmentedlist>
123 <segtitle>Installed programs</segtitle>
124 <segtitle>Installed libraries</segtitle>
125 <segtitle>Installed directory</segtitle>
126
127 <seglistitem>
128 <seg>a2p, c2ph, config_data, corelist, cpan, cpan2dist, cpanp,
129 cpanp-run-perl, dprofpp, enc2xs, find2perl, h2ph, h2xs, instmodsh,
130 libnetcfg, perl, perl&perl-version; (link to perl), perlbug,
131 perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man, pod2text,
132 pod2usage, podchecker, podselect, prove, psed (link to s2p),
133 pstruct (link to c2ph), ptar, ptardiff, s2p, shasum, splain, and
134 xsubpp</seg>
135 <seg>Several hundred which cannot all be listed here</seg>
136 <seg>/usr/lib/perl5</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="config_data">
167 <term><command>config_data</command></term>
168 <listitem>
169 <para>Queries or changes configuration of Perl modules</para>
170 <indexterm zone="ch-system-perl config_data">
171 <primary sortas="b-config_data">config_data</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="corelist">
177 <term><command>corelist</command></term>
178 <listitem>
179 <para>A commandline frontend to Module::CoreList</para>
180 <indexterm zone="ch-system-perl corelist">
181 <primary sortas="b-corelist">corelist</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="cpan">
187 <term><command>cpan</command></term>
188 <listitem>
189 <para>Shell script that provides a command interface to CPAN.pm</para>
190 <indexterm zone="ch-system-perl cpan">
191 <primary sortas="b-cpan">cpan</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="cpan2dist">
197 <term><command>cpan2dist</command></term>
198 <listitem>
199 <para>The CPANPLUS distribution creator</para>
200 <indexterm zone="ch-system-perl cpan2dist">
201 <primary sortas="b-cpan2dist">cpan2dist</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="cpanp">
207 <term><command>cpanp</command></term>
208 <listitem>
209 <para>The CPANPLUS launcher</para>
210 <indexterm zone="ch-system-perl cpanp">
211 <primary sortas="b-cpanp">cpanp</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="cpanp-run-perl">
217 <term><command>cpanp-run-perl</command></term>
218 <listitem>
219 <para>Perl script that (description needed)</para>
220 <indexterm zone="ch-system-perl cpanp-run-perl">
221 <primary sortas="b-cpanp-run-perl">cpanp-run-perl</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="dprofpp">
227 <term><command>dprofpp</command></term>
228 <listitem>
229 <para>Displays Perl profile data</para>
230 <indexterm zone="ch-system-perl dprofpp">
231 <primary sortas="b-dprofpp">dprofpp</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="enc2xs">
237 <term><command>enc2xs</command></term>
238 <listitem>
239 <para>Builds a Perl extension for the Encode module from either
240 Unicode Character Mappings or Tcl Encoding Files</para>
241 <indexterm zone="ch-system-perl enc2xs">
242 <primary sortas="b-enc2xs">enc2xs</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="find2perl">
248 <term><command>find2perl</command></term>
249 <listitem>
250 <para>Translates <command>find</command> commands to Perl</para>
251 <indexterm zone="ch-system-perl find2perl">
252 <primary sortas="b-find2perl">find2perl</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="h2ph">
258 <term><command>h2ph</command></term>
259 <listitem>
260 <para>Converts <filename class="extension">.h</filename> C header
261 files to <filename class="extension">.ph</filename> Perl header
262 files</para>
263 <indexterm zone="ch-system-perl h2ph">
264 <primary sortas="b-h2ph">h2ph</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="h2xs">
270 <term><command>h2xs</command></term>
271 <listitem>
272 <para>Converts <filename class="extension">.h</filename> C header
273 files to Perl extensions</para>
274 <indexterm zone="ch-system-perl h2xs">
275 <primary sortas="b-h2xs">h2xs</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="instmodsh">
281 <term><command>instmodsh</command></term>
282 <listitem>
283 <para>A shell script for examining installed Perl modules,
284 and can even create a tarball from an installed module</para>
285 <indexterm zone="ch-system-perl instmodsh">
286 <primary sortas="b-instmodsh">instmodsh</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="libnetcfg">
292 <term><command>libnetcfg</command></term>
293 <listitem>
294 <para>Can be used to configure the
295 <filename class="libraryfile">libnet</filename></para>
296 <indexterm zone="ch-system-perl libnetcfg">
297 <primary sortas="b-libnetcfg">libnetcfg</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="perl">
303 <term><command>perl</command></term>
304 <listitem>
305 <para>Combines some of the best features of C, <command>sed</command>,
306 <command>awk</command> and <command>sh</command> into a single
307 swiss-army-knife language</para>
308 <indexterm zone="ch-system-perl perl">
309 <primary sortas="b-perl">perl</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="perl-version">
315 <term><command>perl&perl-version;</command></term>
316 <listitem>
317 <para>A hard link to <command>perl</command></para>
318 <indexterm zone="ch-system-perl perl-version">
319 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="perlbug">
325 <term><command>perlbug</command></term>
326 <listitem>
327 <para>Used to generate bug reports about Perl, or the modules that come
328 with it, and mail them</para>
329 <indexterm zone="ch-system-perl perlbug">
330 <primary sortas="b-perlbug">perlbug</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="perldoc">
336 <term><command>perldoc</command></term>
337 <listitem>
338 <para>Displays a piece of documentation in pod format that is embedded
339 in the Perl installation tree or in a Perl script</para>
340 <indexterm zone="ch-system-perl perldoc">
341 <primary sortas="b-perldoc">perldoc</primary>
342 </indexterm>
343 </listitem>
344 </varlistentry>
345
346 <varlistentry id="perlivp">
347 <term><command>perlivp</command></term>
348 <listitem>
349 <para>The Perl Installation Verification Procedure; it can be used to
350 verify that Perl and its libraries have been installed
351 correctly</para>
352 <indexterm zone="ch-system-perl perlivp">
353 <primary sortas="b-perlivp">perlivp</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 <varlistentry id="piconv">
359 <term><command>piconv</command></term>
360 <listitem>
361 <para>A Perl version of the character encoding converter
362 <command>iconv</command></para>
363 <indexterm zone="ch-system-perl piconv">
364 <primary sortas="b-piconv">piconv</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="pl2pm">
370 <term><command>pl2pm</command></term>
371 <listitem>
372 <para>A rough tool for converting Perl4
373 <filename class="extension">.pl</filename> files to Perl5
374 <filename class="extension">.pm</filename> modules</para>
375 <indexterm zone="ch-system-perl pl2pm">
376 <primary sortas="b-pl2pm">pl2pm</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="pod2html">
382 <term><command>pod2html</command></term>
383 <listitem>
384 <para>Converts files from pod format to HTML format</para>
385 <indexterm zone="ch-system-perl pod2html">
386 <primary sortas="b-pod2html">pod2html</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="pod2latex">
392 <term><command>pod2latex</command></term>
393 <listitem>
394 <para>Converts files from pod format to LaTeX format</para>
395 <indexterm zone="ch-system-perl pod2latex">
396 <primary sortas="b-pod2latex">pod2latex</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 <varlistentry id="pod2man">
402 <term><command>pod2man</command></term>
403 <listitem>
404 <para>Converts pod data to formatted *roff input</para>
405 <indexterm zone="ch-system-perl pod2man">
406 <primary sortas="b-pod2man">pod2man</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="pod2text">
412 <term><command>pod2text</command></term>
413 <listitem>
414 <para>Converts pod data to formatted ASCII text</para>
415 <indexterm zone="ch-system-perl pod2text">
416 <primary sortas="b-pod2text">pod2text</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
421 <varlistentry id="pod2usage">
422 <term><command>pod2usage</command></term>
423 <listitem>
424 <para>Prints usage messages from embedded pod docs in files</para>
425 <indexterm zone="ch-system-perl pod2usage">
426 <primary sortas="b-pod2usage">pod2usage</primary>
427 </indexterm>
428 </listitem>
429 </varlistentry>
430
431 <varlistentry id="podchecker">
432 <term><command>podchecker</command></term>
433 <listitem>
434 <para>Checks the syntax of pod format documentation files</para>
435 <indexterm zone="ch-system-perl podchecker">
436 <primary sortas="b-podchecker">podchecker</primary>
437 </indexterm>
438 </listitem>
439 </varlistentry>
440
441 <varlistentry id="podselect">
442 <term><command>podselect</command></term>
443 <listitem>
444 <para>Displays selected sections of pod documentation</para>
445 <indexterm zone="ch-system-perl podselect">
446 <primary sortas="b-podselect">podselect</primary>
447 </indexterm>
448 </listitem>
449 </varlistentry>
450
451 <varlistentry id="prove">
452 <term><command>prove</command></term>
453 <listitem>
454 <para>A command-line tool for running tests against Test::Harness</para>
455 <indexterm zone="ch-system-perl prove">
456 <primary sortas="b-prove">prove</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="psed">
462 <term><command>psed</command></term>
463 <listitem>
464 <para>A Perl version of the stream editor <command>sed</command></para>
465 <indexterm zone="ch-system-perl psed">
466 <primary sortas="b-psed">psed</primary>
467 </indexterm>
468 </listitem>
469 </varlistentry>
470
471 <varlistentry id="pstruct">
472 <term><command>pstruct</command></term>
473 <listitem>
474 <para>Dumps C structures as generated from <command>cc -g -S</command>
475 stabs</para>
476 <indexterm zone="ch-system-perl pstruct">
477 <primary sortas="b-pstruct">pstruct</primary>
478 </indexterm>
479 </listitem>
480 </varlistentry>
481
482 <varlistentry id="ptar">
483 <term><command>ptar</command></term>
484 <listitem>
485 <para>A <command>tar</command>-like program written in Perl</para>
486 <indexterm zone="ch-system-perl ptar">
487 <primary sortas="b-ptar">ptar</primary>
488 </indexterm>
489 </listitem>
490 </varlistentry>
491
492 <varlistentry id="ptardiff">
493 <term><command>ptardiff</command></term>
494 <listitem>
495 <para>A Perl program that compares an extracted archive with an
496 unextracted one</para>
497 <indexterm zone="ch-system-perl ptardiff">
498 <primary sortas="b-ptardiff">ptardiff</primary>
499 </indexterm>
500 </listitem>
501 </varlistentry>
502
503 <varlistentry id="s2p">
504 <term><command>s2p</command></term>
505 <listitem>
506 <para>Translates <command>sed</command> to Perl</para>
507 <indexterm zone="ch-system-perl s2p">
508 <primary sortas="b-s2p">s2p</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
512
513 <varlistentry id="shasum">
514 <term><command>shasum</command></term>
515 <listitem>
516 <para>Prints or checks SHA checksums</para>
517 <indexterm zone="ch-system-perl shasum">
518 <primary sortas="b-shasum">shasum</primary>
519 </indexterm>
520 </listitem>
521 </varlistentry>
522
523 <varlistentry id="splain">
524 <term><command>splain</command></term>
525 <listitem>
526 <para>Is used to force verbose warning diagnostics in Perl</para>
527 <indexterm zone="ch-system-perl splain">
528 <primary sortas="b-splain">splain</primary>
529 </indexterm>
530 </listitem>
531 </varlistentry>
532
533 <varlistentry id="xsubpp">
534 <term><command>xsubpp</command></term>
535 <listitem>
536 <para>Converts Perl XS code into C code</para>
537 <indexterm zone="ch-system-perl xsubpp">
538 <primary sortas="b-xsubpp">xsubpp</primary>
539 </indexterm>
540 </listitem>
541 </varlistentry>
542
543 </variablelist>
544
545 </sect2>
546
547</sect1>
Note: See TracBrowser for help on using the repository browser.