source: chapter06/perl.xml@ f76cde8

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since f76cde8 was f76cde8, checked in by Ken Moffat <ken@…>, 18 years ago

Move creation of /etc/hosts in Perl, to remove another ICA difference.

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

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