source: chapter08/perl.xml@ a9b946e

xry111/mips64el
Last change on this file since a9b946e was 5e6642a8, checked in by Xi Ruoyao <xry111@…>, 7 months ago

mips64el: perl: workaround for a MIPS building issue

  • Property mode set to 100644
File size: 17.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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 <sect1info condition="script">
12 <productname>perl</productname>
13 <productnumber>&perl-version;</productnumber>
14 <address>&perl-url;</address>
15 </sect1info>
16
17 <title>Perl-&perl-version;</title>
18
19 <indexterm zone="ch-system-perl">
20 <primary sortas="a-Perl">Perl</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Perl package contains the Practical Extraction and Report
27 Language.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&perl-fin-sbu;</seg>
35 <seg>&perl-fin-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Perl</title>
43<!--
44 <para>First, apply a patch that fixes an issue highlighted by recent
45 versions of gdbm:</para>
46
47<screen><userinput remap="pre">patch -Np1 -i ../&perl-fix-patch;</userinput></screen>
48-->
49 <para>Workaround an building issue on MIPS:</para>
50
51<screen><userinput remap="pre">sed 's@/bin/mips@/bin/false@g' -i Configure</userinput></screen>
52
53 <para>This version of Perl builds the Compress::Raw::Zlib and
54 Compress::Raw::BZip2 modules. By
55 default Perl will use an internal copy of the sources for the build.
56 Issue the following command so that Perl will use the libraries
57 installed on the system:</para>
58
59<screen><userinput remap="pre">export BUILD_ZLIB=False
60export BUILD_BZIP2=0</userinput></screen>
61
62 <para>To have full control over the way Perl is set up, you can remove the
63 <quote>-des</quote> options from the following command and hand-pick the way
64 this package is built. Alternatively, use the command exactly as shown below to
65 use the defaults that Perl auto-detects:</para>
66
67 <screen><userinput remap="configure">sh Configure -des \
68 -Dprefix=/usr \
69 -Dvendorprefix=/usr \
70 -Dprivlib=/usr/lib/perl5/&perl-version-min;/core_perl \
71 -Darchlib=/usr/lib/perl5/&perl-version-min;/core_perl \
72 -Dsitelib=/usr/lib/perl5/&perl-version-min;/site_perl \
73 -Dsitearch=/usr/lib/perl5/&perl-version-min;/site_perl \
74 -Dvendorlib=/usr/lib/perl5/&perl-version-min;/vendor_perl \
75 -Dvendorarch=/usr/lib/perl5/&perl-version-min;/vendor_perl \
76 -Dman1dir=/usr/share/man/man1 \
77 -Dman3dir=/usr/share/man/man3 \
78 -Dpager="/usr/bin/less -isR" \
79 -Duseshrplib \
80 -Dusethreads</userinput></screen>
81
82 <variablelist>
83 <title>The meaning of the new Configure options:</title>
84
85 <varlistentry>
86 <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
87 <listitem>
88 <para>This ensures that <userinput>less</userinput> is used instead
89 of <userinput>more</userinput>.</para>
90 </listitem>
91 </varlistentry>
92
93 <varlistentry>
94 <term><parameter>-Dman1dir=/usr/share/man/man1
95 -Dman3dir=/usr/share/man/man3</parameter></term>
96 <listitem>
97 <para>Since Groff is not installed yet, <command>Configure</command>
98 will not create man pages for Perl. These
99 parameters override this behavior.</para>
100 </listitem>
101 </varlistentry>
102
103 <varlistentry>
104 <term><parameter>-Dusethreads</parameter></term>
105 <listitem>
106 <para>Build Perl with support for threads.</para>
107 </listitem>
108 </varlistentry>
109
110 </variablelist>
111
112 <para>Compile the package:</para>
113
114<screen><userinput remap="make">make</userinput></screen>
115
116 <para>To test the results (approximately 11 SBU), issue:</para>
117
118<screen><userinput remap="test">TEST_JOBS=$(nproc) make test_harness</userinput></screen>
119
120 <para>Install the package and clean up:</para>
121
122<screen><userinput remap="install">make install
123unset BUILD_ZLIB BUILD_BZIP2</userinput></screen>
124
125 </sect2>
126
127 <sect2 id="contents-perl" role="content">
128 <title>Contents of Perl</title>
129
130 <segmentedlist>
131 <segtitle>Installed programs</segtitle>
132 <segtitle>Installed libraries</segtitle>
133 <segtitle>Installed directory</segtitle>
134
135 <seglistitem>
136 <seg>corelist, cpan, enc2xs, encguess, h2ph, h2xs, instmodsh,
137 json_pp, libnetcfg, perl, perl&perl-version; (hard link to perl),
138 perlbug, perldoc, perlivp, perlthanks (hard link to perlbug), piconv,
139 pl2pm, pod2html, pod2man, pod2text, pod2usage, podchecker, podselect,
140 prove, ptar, ptardiff, ptargrep, shasum,
141 splain, xsubpp, and zipdetails</seg>
142 <seg>Many which cannot all be listed here</seg>
143 <seg>/usr/lib/perl5</seg>
144 </seglistitem>
145 </segmentedlist>
146
147 <variablelist>
148 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
149 <?dbfo list-presentation="list"?>
150 <?dbhtml list-presentation="table"?>
151<!--
152 <varlistentry id="c2ph">
153 <term><command>c2ph</command></term>
154 <listitem>
155 <para>Dumps C structures as generated from
156 <command>cc -g -S</command></para>
157 <indexterm zone="ch-system-perl c2ph">
158 <primary sortas="b-c2ph">c2ph</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162-->
163 <varlistentry id="corelist">
164 <term><command>corelist</command></term>
165 <listitem>
166 <para>A command line front end to Module::CoreList</para>
167 <indexterm zone="ch-system-perl corelist">
168 <primary sortas="b-corelist">corelist</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="cpan">
174 <term><command>cpan</command></term>
175 <listitem>
176 <para>Interact with the Comprehensive Perl Archive Network (CPAN)
177 from the command line</para>
178 <indexterm zone="ch-system-perl cpan">
179 <primary sortas="b-cpan">cpan</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 <varlistentry id="enc2xs">
185 <term><command>enc2xs</command></term>
186 <listitem>
187 <para>Builds a Perl extension for the Encode module from either
188 Unicode Character Mappings or Tcl Encoding Files</para>
189 <indexterm zone="ch-system-perl enc2xs">
190 <primary sortas="b-enc2xs">enc2xs</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry id="encguess">
196 <term><command>encguess</command></term>
197 <listitem>
198 <para>Guess the encoding type of one or several files</para>
199 <indexterm zone="ch-system-perl encguess">
200 <primary sortas="b-encguess">encguess</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="h2ph">
206 <term><command>h2ph</command></term>
207 <listitem>
208 <para>Converts <filename class="extension">.h</filename> C header
209 files to <filename class="extension">.ph</filename> Perl header
210 files</para>
211 <indexterm zone="ch-system-perl h2ph">
212 <primary sortas="b-h2ph">h2ph</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="h2xs">
218 <term><command>h2xs</command></term>
219 <listitem>
220 <para>Converts <filename class="extension">.h</filename> C header
221 files to Perl extensions</para>
222 <indexterm zone="ch-system-perl h2xs">
223 <primary sortas="b-h2xs">h2xs</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="instmodsh">
229 <term><command>instmodsh</command></term>
230 <listitem>
231 <para>Shell script for examining installed Perl modules;
232 it can create a tarball from an installed module</para>
233 <indexterm zone="ch-system-perl instmodsh">
234 <primary sortas="b-instmodsh">instmodsh</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="json_pp">
240 <term><command>json_pp</command></term>
241 <listitem>
242 <para>Converts data between certain input and output formats</para>
243 <indexterm zone="ch-system-perl json_pp">
244 <primary sortas="b-json_pp">json_pp</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id="libnetcfg">
250 <term><command>libnetcfg</command></term>
251 <listitem>
252 <para>Can be used to configure the
253 <filename class="libraryfile">libnet</filename> Perl module</para>
254 <indexterm zone="ch-system-perl libnetcfg">
255 <primary sortas="b-libnetcfg">libnetcfg</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="perl">
261 <term><command>perl</command></term>
262 <listitem>
263 <para>Combines some of the best features of C, <command>sed</command>,
264 <command>awk</command> and <command>sh</command> into a single
265 Swiss Army language</para>
266 <indexterm zone="ch-system-perl perl">
267 <primary sortas="b-perl">perl</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="perl-version">
273 <term><command>perl&perl-version;</command></term>
274 <listitem>
275 <para>A hard link to <command>perl</command></para>
276 <indexterm zone="ch-system-perl perl-version">
277 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="perlbug">
283 <term><command>perlbug</command></term>
284 <listitem>
285 <para>Used to generate bug reports about Perl, or the modules that come
286 with it, and mail them</para>
287 <indexterm zone="ch-system-perl perlbug">
288 <primary sortas="b-perlbug">perlbug</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="perldoc">
294 <term><command>perldoc</command></term>
295 <listitem>
296 <para>Displays a piece of documentation in pod format that is embedded
297 in the Perl installation tree or in a Perl script</para>
298 <indexterm zone="ch-system-perl perldoc">
299 <primary sortas="b-perldoc">perldoc</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="perlivp">
305 <term><command>perlivp</command></term>
306 <listitem>
307 <para>The Perl Installation Verification Procedure; it can be used to
308 verify that Perl and its libraries have been installed
309 correctly</para>
310 <indexterm zone="ch-system-perl perlivp">
311 <primary sortas="b-perlivp">perlivp</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 <varlistentry id="perlthanks">
317 <term><command>perlthanks</command></term>
318 <listitem>
319 <para>Used to generate thank you messages to mail to the Perl
320 developers</para>
321 <indexterm zone="ch-system-perl perlthanks">
322 <primary sortas="b-perlthanks">perlthanks</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 <varlistentry id="piconv">
328 <term><command>piconv</command></term>
329 <listitem>
330 <para>A Perl version of the character encoding converter
331 <command>iconv</command></para>
332 <indexterm zone="ch-system-perl piconv">
333 <primary sortas="b-piconv">piconv</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="pl2pm">
339 <term><command>pl2pm</command></term>
340 <listitem>
341 <para>A rough tool for converting Perl4
342 <filename class="extension">.pl</filename> files to Perl5
343 <filename class="extension">.pm</filename> modules</para>
344 <indexterm zone="ch-system-perl pl2pm">
345 <primary sortas="b-pl2pm">pl2pm</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="pod2html">
351 <term><command>pod2html</command></term>
352 <listitem>
353 <para>Converts files from pod format to HTML format</para>
354 <indexterm zone="ch-system-perl pod2html">
355 <primary sortas="b-pod2html">pod2html</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
360 <varlistentry id="pod2man">
361 <term><command>pod2man</command></term>
362 <listitem>
363 <para>Converts pod data to formatted *roff input</para>
364 <indexterm zone="ch-system-perl pod2man">
365 <primary sortas="b-pod2man">pod2man</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
370 <varlistentry id="pod2text">
371 <term><command>pod2text</command></term>
372 <listitem>
373 <para>Converts pod data to formatted ASCII text</para>
374 <indexterm zone="ch-system-perl pod2text">
375 <primary sortas="b-pod2text">pod2text</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
380 <varlistentry id="pod2usage">
381 <term><command>pod2usage</command></term>
382 <listitem>
383 <para>Prints usage messages from embedded pod docs in files</para>
384 <indexterm zone="ch-system-perl pod2usage">
385 <primary sortas="b-pod2usage">pod2usage</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="podchecker">
391 <term><command>podchecker</command></term>
392 <listitem>
393 <para>Checks the syntax of pod format documentation files</para>
394 <indexterm zone="ch-system-perl podchecker">
395 <primary sortas="b-podchecker">podchecker</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
400 <varlistentry id="podselect">
401 <term><command>podselect</command></term>
402 <listitem>
403 <para>Displays selected sections of pod documentation</para>
404 <indexterm zone="ch-system-perl podselect">
405 <primary sortas="b-podselect">podselect</primary>
406 </indexterm>
407 </listitem>
408 </varlistentry>
409
410 <varlistentry id="prove">
411 <term><command>prove</command></term>
412 <listitem>
413 <para>Command line tool for running tests against the Test::Harness
414 module</para>
415 <indexterm zone="ch-system-perl prove">
416 <primary sortas="b-prove">prove</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420<!--
421 <varlistentry id="pstruct">
422 <term><command>pstruct</command></term>
423 <listitem>
424 <para>Dumps C structures as generated from <command>cc -g -S</command>
425 stabs</para>
426 <indexterm zone="ch-system-perl pstruct">
427 <primary sortas="b-pstruct">pstruct</primary>
428 </indexterm>
429 </listitem>
430 </varlistentry>
431-->
432 <varlistentry id="ptar">
433 <term><command>ptar</command></term>
434 <listitem>
435 <para>A <command>tar</command>-like program written in Perl</para>
436 <indexterm zone="ch-system-perl ptar">
437 <primary sortas="b-ptar">ptar</primary>
438 </indexterm>
439 </listitem>
440 </varlistentry>
441
442 <varlistentry id="ptardiff">
443 <term><command>ptardiff</command></term>
444 <listitem>
445 <para>A Perl program that compares an extracted archive with an
446 unextracted one</para>
447 <indexterm zone="ch-system-perl ptardiff">
448 <primary sortas="b-ptardiff">ptardiff</primary>
449 </indexterm>
450 </listitem>
451 </varlistentry>
452
453 <varlistentry id="ptargrep">
454 <term><command>ptargrep</command></term>
455 <listitem>
456 <para>A Perl program that applies pattern matching to the contents
457 of files in a tar archive</para>
458 <indexterm zone="ch-system-perl ptargrep">
459 <primary sortas="b-ptargrep">ptargrep</primary>
460 </indexterm>
461 </listitem>
462 </varlistentry>
463
464 <varlistentry id="shasum">
465 <term><command>shasum</command></term>
466 <listitem>
467 <para>Prints or checks SHA checksums</para>
468 <indexterm zone="ch-system-perl shasum">
469 <primary sortas="b-shasum">shasum</primary>
470 </indexterm>
471 </listitem>
472 </varlistentry>
473
474 <varlistentry id="splain">
475 <term><command>splain</command></term>
476 <listitem>
477 <para>Is used to force verbose warning diagnostics in Perl</para>
478 <indexterm zone="ch-system-perl splain">
479 <primary sortas="b-splain">splain</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="xsubpp">
485 <term><command>xsubpp</command></term>
486 <listitem>
487 <para>Converts Perl XS code into C code</para>
488 <indexterm zone="ch-system-perl xsubpp">
489 <primary sortas="b-xsubpp">xsubpp</primary>
490 </indexterm>
491 </listitem>
492 </varlistentry>
493
494 <varlistentry id="zipdetails">
495 <term><command>zipdetails</command></term>
496 <listitem>
497 <para>Displays details about the internal structure of a Zip file</para>
498 <indexterm zone="ch-system-perl zipdetails">
499 <primary sortas="b-zipdetails">zipdetails</primary>
500 </indexterm>
501 </listitem>
502 </varlistentry>
503
504 </variablelist>
505
506 </sect2>
507
508</sect1>
Note: See TracBrowser for help on using the repository browser.