source: chapter06/perl.xml@ 67129a2b

6.0
Last change on this file since 67129a2b was 3ed279f, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags changes in the contents sections to make a better print output.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4009 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 10.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-perl" xreflabel="Perl" role="wrap">
7<title>Perl-&perl-version;</title>
8<?dbhtml filename="perl.html"?>
9
10<indexterm zone="ch-system-perl"><primary sortas="a-Perl">Perl</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Perl package contains the Practical Extraction and Report Language.</para>
14
15<segmentedlist>
16<segtitle>&buildtime;</segtitle>
17<segtitle>&diskspace;</segtitle>
18<seglistitem><seg>2.9 SBU</seg><seg>143 MB</seg></seglistitem>
19</segmentedlist>
20
21<segmentedlist>
22<segtitle>Perl installation depends on</segtitle>
23<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
24Gawk, GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
25</segmentedlist>
26</sect2>
27
28<sect2 role="installation">
29<title>Installation of Perl</title>
30
31<para>To have full control over the way Perl is set up, run the
32interactive <command>Configure</command> script and hand-pick the way
33this package is built. If the defaults it auto-detects are suitable,
34prepare Perl for compilation with:</para>
35
36<screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"</userinput></screen>
37
38<para>The meaning of the configure option:</para>
39
40<variablelist>
41<varlistentry>
42<term><parameter>-Dpager="/bin/less -isR"</parameter></term>
43<listitem><para>This corrects an error in the <command>perldoc</command> code with the invocation
44of the <command>less</command> program.</para></listitem>
45</varlistentry>
46</variablelist>
47
48<para>Compile the package:</para>
49
50<screen><userinput>make</userinput></screen>
51
52<para>To run the test suite, first create a basic
53<filename>/etc/hosts</filename> file which is needed by a couple of
54tests to resolve the network name localhost:</para>
55
56<screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
57
58<para>Now run the tests, if desired:</para>
59
60<screen><userinput>make test</userinput></screen>
61
62<para>Install the package:</para>
63
64<screen><userinput>make install</userinput></screen>
65
66</sect2>
67
68
69<sect2 id="contents-perl" role="content"><title>Contents of Perl</title>
70
71<segmentedlist>
72<segtitle>Installed programs</segtitle>
73<segtitle>Installed libraries</segtitle>
74<seglistitem><seg>a2p, c2ph, dprofpp, enc2xs,
75find2perl, h2ph, h2xs, libnetcfg, perl, perl&perl-version; (link to perl),
76perlbug, perlcc, perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man,
77pod2text, pod2usage, podchecker, podselect, psed (link to s2p), pstruct (link
78to c2ph), s2p, splain and xsubpp</seg>
79<seg>Several hundred which cannot be all listed here</seg></seglistitem>
80</segmentedlist>
81
82<variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
83<?dbfo list-presentation="list"?>
84
85<varlistentry id="a2p">
86<term><command>a2p</command></term>
87<listitem>
88<para>translates awk to Perl.</para>
89<indexterm zone="ch-system-perl a2p"><primary sortas="b-a2p">a2p</primary></indexterm>
90</listitem>
91</varlistentry>
92
93<varlistentry id="c2ph">
94<term><command>c2ph</command></term>
95<listitem>
96<para>dumps C structures as generated from <quote>cc -g -S</quote>.</para>
97<indexterm zone="ch-system-perl c2ph"><primary sortas="b-c2ph">c2ph</primary></indexterm>
98</listitem>
99</varlistentry>
100
101<varlistentry id="dprofpp">
102<term><command>dprofpp</command></term>
103<listitem>
104<para>displays Perl profile data.</para>
105<indexterm zone="ch-system-perl dprofpp"><primary sortas="b-dprofpp">dprofpp</primary></indexterm>
106</listitem>
107</varlistentry>
108
109<varlistentry id="en2cxs">
110<term><command>en2cxs</command></term>
111<listitem>
112<para>builds a Perl extension for the Encode module, from either
113Unicode Character Mappings or Tcl Encoding Files.</para>
114<indexterm zone="ch-system-perl en2cxs"><primary sortas="b-en2cxs">en2cxs</primary></indexterm>
115</listitem>
116</varlistentry>
117
118<varlistentry id="find2perl">
119<term><command>find2perl</command></term>
120<listitem>
121<para>translates find commands to Perl.</para>
122<indexterm zone="ch-system-perl find2perl"><primary sortas="b-find2perl">find2perl</primary></indexterm>
123</listitem>
124</varlistentry>
125
126<varlistentry id="h2ph">
127<term><command>h2ph</command></term>
128<listitem>
129<para>converts <filename class="extension">.h</filename> C header files to
130<filename class="extension">.ph</filename> Perl header files.</para>
131<indexterm zone="ch-system-perl h2ph"><primary sortas="b-h2ph">h2ph</primary></indexterm>
132</listitem>
133</varlistentry>
134
135<varlistentry id="h2xs">
136<term><command>h2xs</command></term>
137<listitem>
138<para>converts <filename class="extension">.h</filename> C header files to Perl extensions.</para>
139<indexterm zone="ch-system-perl h2xs"><primary sortas="b-h2xs">h2xs</primary></indexterm>
140</listitem>
141</varlistentry>
142
143<varlistentry id="libnetcfg">
144<term><command>libnetcfg</command></term>
145<listitem>
146<para>can be used to configure the <filename class="libraryfile">libnet</filename>.</para>
147<indexterm zone="ch-system-perl libnetcfg"><primary sortas="b-libnetcfg">libnetcfg</primary></indexterm>
148</listitem>
149</varlistentry>
150
151<varlistentry id="perl">
152<term><command>perl</command></term>
153<listitem>
154<para>combines some of the best features of C, sed, awk and sh into a
155single swiss-army language.</para>
156<indexterm zone="ch-system-perl perl"><primary sortas="b-perl">perl</primary></indexterm>
157</listitem>
158</varlistentry>
159
160<varlistentry id="perlbug">
161<term><command>perlbug</command></term>
162<listitem>
163<para>used to generate bug reports about Perl or the modules that come
164with it, and mail them.</para>
165<indexterm zone="ch-system-perl perlbug"><primary sortas="b-perlbug">perlbug</primary></indexterm>
166</listitem>
167</varlistentry>
168
169<varlistentry id="perlcc">
170<term><command>perlcc</command></term>
171<listitem>
172<para>generates executables from Perl programs.</para>
173<indexterm zone="ch-system-perl perlcc"><primary sortas="b-perlcc">perlcc</primary></indexterm>
174</listitem>
175</varlistentry>
176
177<varlistentry id="perldoc">
178<term><command>perldoc</command></term>
179<listitem>
180<para>displays a piece of documentation in pod format that is embedded
181in the Perl installation tree or in a Perl script.</para>
182<indexterm zone="ch-system-perl perldoc"><primary sortas="b-perldoc">perldoc</primary></indexterm>
183</listitem>
184</varlistentry>
185
186<varlistentry id="perlivp">
187<term><command>perlivp</command></term>
188<listitem>
189<para>the Perl Installation Verification Procedure. It can be used to
190verify that Perl and its libraries have been installed
191correctly.</para>
192<indexterm zone="ch-system-perl perlivp"><primary sortas="b-perlivp">perlivp</primary></indexterm>
193</listitem>
194</varlistentry>
195
196<varlistentry id="piconv">
197<term><command>piconv</command></term>
198<listitem>
199<para>is a Perl version of the character encoding converter
200<command>iconv</command>.</para>
201<indexterm zone="ch-system-perl piconv"><primary sortas="b-piconv">piconv</primary></indexterm>
202</listitem>
203</varlistentry>
204
205<varlistentry id="pl2pm">
206<term><command>pl2pm</command></term>
207<listitem>
208<para>is a rough tool for converting Perl4 <filename class="extension">.pl</filename>
209files to Perl5 <filename class="extension">.pm</filename> modules.</para>
210<indexterm zone="ch-system-perl pl2pm"><primary sortas="b-pl2pm">pl2pm</primary></indexterm>
211</listitem>
212</varlistentry>
213
214<varlistentry id="pod2html">
215<term><command>pod2html</command></term>
216<listitem>
217<para>converts files from pod format to HTML format.</para>
218<indexterm zone="ch-system-perl pod2html"><primary sortas="b-pod2html">pod2html</primary></indexterm>
219</listitem>
220</varlistentry>
221
222<varlistentry id="pod2latex">
223<term><command>pod2latex</command></term>
224<listitem>
225<para>converts files from pod format to LaTeX format.</para>
226<indexterm zone="ch-system-perl pod2latex"><primary sortas="b-pod2latex">pod2latex</primary></indexterm>
227</listitem>
228</varlistentry>
229
230<varlistentry id="pod2man">
231<term><command>pod2man</command></term>
232<listitem>
233<para>converts pod data to formatted *roff input.</para>
234<indexterm zone="ch-system-perl pod2man"><primary sortas="b-pod2man">pod2man</primary></indexterm>
235</listitem>
236</varlistentry>
237
238<varlistentry id="pod2text">
239<term><command>pod2text</command></term>
240<listitem>
241<para>converts pod data to formatted ASCII text.</para>
242<indexterm zone="ch-system-perl pod2text"><primary sortas="b-pod2text">pod2text</primary></indexterm>
243</listitem>
244</varlistentry>
245
246<varlistentry id="pod2usage">
247<term><command>pod2usage</command></term>
248<listitem>
249<para>prints usage messages from embedded pod docs in files.</para>
250<indexterm zone="ch-system-perl pod2usage"><primary sortas="b-pod2usage">pod2usage</primary></indexterm>
251</listitem>
252</varlistentry>
253
254<varlistentry id="podchecker">
255<term><command>podchecker</command></term>
256<listitem>
257<para>checks the syntax of pod format documentation files.</para>
258<indexterm zone="ch-system-perl podchecker"><primary sortas="b-podchecker">podchecker</primary></indexterm>
259</listitem>
260</varlistentry>
261
262<varlistentry id="podselect">
263<term><command>podselect</command></term>
264<listitem>
265<para>displays selected sections of pod documentation.</para>
266<indexterm zone="ch-system-perl podselect"><primary sortas="b-podselect">podselect</primary></indexterm>
267</listitem>
268</varlistentry>
269
270<varlistentry id="psed">
271<term><command>psed</command></term>
272<listitem>
273<para>a Perl version of the stream editor <command>sed</command>.</para>
274<indexterm zone="ch-system-perl psed"><primary sortas="b-psed">psed</primary></indexterm>
275</listitem>
276</varlistentry>
277
278<varlistentry id="pstruct">
279<term><command>pstruct</command></term>
280<listitem>
281<para>dumps C structures as generated from <quote>cc -g -S</quote> stabs.</para>
282<indexterm zone="ch-system-perl pstruct"><primary sortas="b-pstruct">pstruct</primary></indexterm>
283</listitem>
284</varlistentry>
285
286<varlistentry id="s2p">
287<term><command>s2p</command></term>
288<listitem>
289<para>translates sed to Perl.</para>
290<indexterm zone="ch-system-perl s2p"><primary sortas="b-s2p">s2p</primary></indexterm>
291</listitem>
292</varlistentry>
293
294<varlistentry id="splain">
295<term><command>splain</command></term>
296<listitem>
297<para>is used to force verbose warning diagnostics in Perl.</para>
298<indexterm zone="ch-system-perl splain"><primary sortas="b-splain">splain</primary></indexterm>
299</listitem>
300</varlistentry>
301
302<varlistentry id="xsubpp">
303<term><command>xsubpp</command></term>
304<listitem>
305<para>converts Perl XS code into C code.</para>
306<indexterm zone="ch-system-perl xsubpp"><primary sortas="b-xsubpp">xsubpp</primary></indexterm>
307</listitem>
308</varlistentry>
309</variablelist>
310
311</sect2>
312
313</sect1>
314
Note: See TracBrowser for help on using the repository browser.