source: final-system/common/perl.xml@ fba1ebb

Last change on this file since fba1ebb was 856e3f4, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Add the perl fPIC patch.

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