source: chapter06/perl.xml@ 6f461cb

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 12.2 12.2-rc1 6.0 6.1 6.1.1 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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 6f461cb was c6cb3aa, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

HEAD: Retagged the Contents of ... sections.

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

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