perl.xml 18 KB

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