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

Last change on this file since c42e00c was f580bc1, checked in by Jim Gifford <clfs@…>, 18 years ago

Fixed Perl FPIC sed

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