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

Last change on this file since a501174 was 6003b158, checked in by Chris Staub <chris@…>, 18 years ago

Text updates

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