source: BOOK/final-system/common/perl.xml@ 28d6895

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 28d6895 was 7b31c44, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Updated Coreutils to 6.12.
Drop Mktemp in favor of the version included in Coreutils.
Updated Perl to 5.10.0.
Updated File to 4.25.
Updated File to 4.26.
Updated GCC to 4.3.2.

  • Property mode set to 100644
File size: 15.6 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 <note os="a00">
36 <para>If you are following the boot method you will need to enable the
37 loopback device as well as set a hostname for some of the tests:</para>
38
39 <screen><userinput>ip link set lo up
40hostname clfs</userinput></screen>
41 </note>
42
43 <para os="a01">Before starting to configure, create a basic
44 <filename>/etc/hosts</filename> file which will be referenced by one
45 of Perl's configuration files as well as used by the testsuite:</para>
46
47<screen os="a02"><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
48
49 <para os="a">To have full control over the way Perl is set up, you can
50 run the interactive <command>Configure</command> script and hand-pick
51 the way this package is built. If you prefer instead to use the defaults
52 that Perl auto-detects, prepare Perl for compilation with:</para>
53
54<screen os="b"><userinput>CC=gcc ./configure.gnu --prefix=/usr \
55 -Dman1dir=/usr/share/man/man1 \
56 -Dman3dir=/usr/share/man/man3 \
57 -Dpager="/bin/less -isR" \
58 -Dusethreads</userinput></screen>
59
60 <variablelist os="c">
61 <title>The meaning of the configure option:</title>
62
63 <varlistentry os="c1">
64 <term><parameter>-Dpager="/bin/less -isR"</parameter></term>
65 <listitem>
66 <para>This corrects an error in the way that <command>perldoc</command>
67 invokes the <command>less</command> program.</para>
68 </listitem>
69 </varlistentry>
70 <varlistentry os="c2">
71 <term><parameter>-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3</parameter></term>
72 <listitem>
73 <para>Since Groff is not installed yet,
74 <command>configure.gnu</command> thinks that we do not want
75 man pages for Perl. Issuing these parameters overrides this decision.</para>
76 </listitem>
77 </varlistentry>
78 <varlistentry os="c3">
79 <term><parameter>-Dusethreads</parameter></term>
80 <listitem>
81 <para>This tells Perl to use threads.</para>
82 </listitem>
83 </varlistentry>
84 </variablelist>
85
86 <para os="d">Compile the package:</para>
87
88<screen os="e"><userinput>make</userinput></screen>
89
90 <para os="h">To test the results, issue:
91 <userinput>make test</userinput>.</para>
92
93 <para os="j">Install the package:</para>
94
95<screen os="k"><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, cpan, dprofpp, enc2xs, find2perl, h2ph, h2xs, instmodsh, libnetcfg,
108 perl, perl&perl-version; (link to perl), perlbug, perlcc, perldoc,
109 perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man, pod2text,
110 pod2usage, podchecker, podselect, prove, psed (link to s2p), pstruct (link
111 to c2ph), s2p, 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="cpan">
143 <term><command>cpan</command></term>
144 <listitem>
145 <para>Shell script that provides a command interface to CPAN.pm</para>
146 <indexterm zone="ch-system-perl cpan">
147 <primary sortas="b-cpan">cpan</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="dprofpp">
153 <term><command>dprofpp</command></term>
154 <listitem>
155 <para>Displays Perl profile data</para>
156 <indexterm zone="ch-system-perl dprofpp">
157 <primary sortas="b-dprofpp">dprofpp</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="enc2xs">
163 <term><command>enc2xs</command></term>
164 <listitem>
165 <para>Builds a Perl extension for the Encode module from either
166 Unicode Character Mappings or Tcl Encoding Files</para>
167 <indexterm zone="ch-system-perl enc2xs">
168 <primary sortas="b-enc2xs">enc2xs</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="find2perl">
174 <term><command>find2perl</command></term>
175 <listitem>
176 <para>Translates <command>find</command> commands to Perl</para>
177 <indexterm zone="ch-system-perl find2perl">
178 <primary sortas="b-find2perl">find2perl</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="h2ph">
184 <term><command>h2ph</command></term>
185 <listitem>
186 <para>Converts <filename class="extension">.h</filename> C header
187 files to <filename class="extension">.ph</filename> Perl header
188 files</para>
189 <indexterm zone="ch-system-perl h2ph">
190 <primary sortas="b-h2ph">h2ph</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry id="h2xs">
196 <term><command>h2xs</command></term>
197 <listitem>
198 <para>Converts <filename class="extension">.h</filename> C header
199 files to Perl extensions</para>
200 <indexterm zone="ch-system-perl h2xs">
201 <primary sortas="b-h2xs">h2xs</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="libnetcfg">
207 <term><command>libnetcfg</command></term>
208 <listitem>
209 <para>Can be used to configure the
210 <filename class="libraryfile">libnet</filename></para>
211 <indexterm zone="ch-system-perl libnetcfg">
212 <primary sortas="b-libnetcfg">libnetcfg</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="instmodsh">
218 <term><command>instmodsh</command></term>
219 <listitem>
220 <para>A shell script for examining installed Perl modules,
221 and can even create a tarball from an installed module</para>
222 <indexterm zone="ch-system-perl instmodsh">
223 <primary sortas="b-instmodsh">instmodsh</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="perl">
229 <term><command>perl</command></term>
230 <listitem>
231 <para>Combines some of the best features of C, <command>sed</command>,
232 <command>awk</command> and <command>sh</command> into a single
233 swiss-army-knife language</para>
234 <indexterm zone="ch-system-perl perl">
235 <primary sortas="b-perl">perl</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="perl-version">
241 <term><command>perl&perl-version;</command></term>
242 <listitem>
243 <para>A hard link to <command>perl</command></para>
244 <indexterm zone="ch-system-perl perl-version">
245 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="perlbug">
251 <term><command>perlbug</command></term>
252 <listitem>
253 <para>Used to generate bug reports about Perl, or the modules that come
254 with it, and mail them</para>
255 <indexterm zone="ch-system-perl perlbug">
256 <primary sortas="b-perlbug">perlbug</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="perlcc">
262 <term><command>perlcc</command></term>
263 <listitem>
264 <para>Generates executables from Perl programs</para>
265 <indexterm zone="ch-system-perl perlcc">
266 <primary sortas="b-perlcc">perlcc</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="perldoc">
272 <term><command>perldoc</command></term>
273 <listitem>
274 <para>Displays a piece of documentation in pod format that is embedded
275 in the Perl installation tree or in a Perl script</para>
276 <indexterm zone="ch-system-perl perldoc">
277 <primary sortas="b-perldoc">perldoc</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="perlivp">
283 <term><command>perlivp</command></term>
284 <listitem>
285 <para>The Perl Installation Verification Procedure; it can be used to
286 verify that Perl and its libraries have been installed
287 correctly</para>
288 <indexterm zone="ch-system-perl perlivp">
289 <primary sortas="b-perlivp">perlivp</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="piconv">
295 <term><command>piconv</command></term>
296 <listitem>
297 <para>A Perl version of the character encoding converter
298 <command>iconv</command></para>
299 <indexterm zone="ch-system-perl piconv">
300 <primary sortas="b-piconv">piconv</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="pl2pm">
306 <term><command>pl2pm</command></term>
307 <listitem>
308 <para>A rough tool for converting Perl4
309 <filename class="extension">.pl</filename> files to Perl5
310 <filename class="extension">.pm</filename> modules</para>
311 <indexterm zone="ch-system-perl pl2pm">
312 <primary sortas="b-pl2pm">pl2pm</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="pod2html">
318 <term><command>pod2html</command></term>
319 <listitem>
320 <para>Converts files from pod format to HTML format</para>
321 <indexterm zone="ch-system-perl pod2html">
322 <primary sortas="b-pod2html">pod2html</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 <varlistentry id="pod2latex">
328 <term><command>pod2latex</command></term>
329 <listitem>
330 <para>Converts files from pod format to LaTeX format</para>
331 <indexterm zone="ch-system-perl pod2latex">
332 <primary sortas="b-pod2latex">pod2latex</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336
337 <varlistentry id="pod2man">
338 <term><command>pod2man</command></term>
339 <listitem>
340 <para>Converts pod data to formatted *roff input</para>
341 <indexterm zone="ch-system-perl pod2man">
342 <primary sortas="b-pod2man">pod2man</primary>
343 </indexterm>
344 </listitem>
345 </varlistentry>
346
347 <varlistentry id="pod2text">
348 <term><command>pod2text</command></term>
349 <listitem>
350 <para>Converts pod data to formatted ASCII text</para>
351 <indexterm zone="ch-system-perl pod2text">
352 <primary sortas="b-pod2text">pod2text</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
356
357 <varlistentry id="pod2usage">
358 <term><command>pod2usage</command></term>
359 <listitem>
360 <para>Prints usage messages from embedded pod docs in files</para>
361 <indexterm zone="ch-system-perl pod2usage">
362 <primary sortas="b-pod2usage">pod2usage</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
366
367 <varlistentry id="podchecker">
368 <term><command>podchecker</command></term>
369 <listitem>
370 <para>Checks the syntax of pod format documentation files</para>
371 <indexterm zone="ch-system-perl podchecker">
372 <primary sortas="b-podchecker">podchecker</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
376
377 <varlistentry id="podselect">
378 <term><command>podselect</command></term>
379 <listitem>
380 <para>Displays selected sections of pod documentation</para>
381 <indexterm zone="ch-system-perl podselect">
382 <primary sortas="b-podselect">podselect</primary>
383 </indexterm>
384 </listitem>
385 </varlistentry>
386
387 <varlistentry id="prove">
388 <term><command>prove</command></term>
389 <listitem>
390 <para>A command-line tool for running tests against Test::Harness</para>
391 <indexterm zone="ch-system-perl prove">
392 <primary sortas="b-prove">prove</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="psed">
398 <term><command>psed</command></term>
399 <listitem>
400 <para>A Perl version of the stream editor <command>sed</command></para>
401 <indexterm zone="ch-system-perl psed">
402 <primary sortas="b-psed">psed</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
407 <varlistentry id="pstruct">
408 <term><command>pstruct</command></term>
409 <listitem>
410 <para>Dumps C structures as generated from <command>cc -g -S</command>
411 stabs</para>
412 <indexterm zone="ch-system-perl pstruct">
413 <primary sortas="b-pstruct">pstruct</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
417
418 <varlistentry id="s2p">
419 <term><command>s2p</command></term>
420 <listitem>
421 <para>Translates <command>sed</command> to Perl</para>
422 <indexterm zone="ch-system-perl s2p">
423 <primary sortas="b-s2p">s2p</primary>
424 </indexterm>
425 </listitem>
426 </varlistentry>
427
428 <varlistentry id="splain">
429 <term><command>splain</command></term>
430 <listitem>
431 <para>Is used to force verbose warning diagnostics in Perl</para>
432 <indexterm zone="ch-system-perl splain">
433 <primary sortas="b-splain">splain</primary>
434 </indexterm>
435 </listitem>
436 </varlistentry>
437
438 <varlistentry id="xsubpp">
439 <term><command>xsubpp</command></term>
440 <listitem>
441 <para>Converts Perl XS code into C code</para>
442 <indexterm zone="ch-system-perl xsubpp">
443 <primary sortas="b-xsubpp">xsubpp</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
448 </variablelist>
449
450 </sect2>
451
452</sect1>
Note: See TracBrowser for help on using the repository browser.