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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 44972a7 was 9bf414b, checked in by Chris Staub <chris@…>, 16 years ago

Remove unneeded CC vars

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