perl.xml 18 KB

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