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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a48d7758 was 0ae51e6, checked in by Jim Gifford <clfs@…>, 18 years ago

Rearranged build order to fix Perl Testsuite Failures

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