perl.xml 18 KB

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