perl.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  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. testsuite:</para>
  36. <screen><userinput remap="pre">echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
  37. <para>The following patch fixes known vulnerabilities and other issues
  38. identified by the developers:</para>
  39. <screen><userinput remap="pre">patch -Np1 -i ../&perl-consolidated-patch;</userinput></screen>
  40. <!-- <para>The following patch fixes an incompatibility with
  41. Glibc-&glibc-version;:</para>
  42. <screen><userinput remap="pre">patch -Np1 -i ../&perl-page-patch;</userinput></screen>
  43. -->
  44. <!-- Confirmed that this is not required any longer
  45. <para>Fix an incompatibility with gcc-&gcc-version;:</para>
  46. <screen><userinput remap="pre">sed -i 's/command /command[ -]/' makedepend.SH</userinput></screen>
  47. -->
  48. <para>This version of Perl now builds the Compress::Raw::Zlib module. By
  49. default Perl will use an internal copy of the Zlib source for the build.
  50. Issue the following command so that Perl will use the Zlib library
  51. installed on the system:</para>
  52. <screen><userinput remap="pre">sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \
  53. -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \
  54. -e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \
  55. ext/Compress/Raw/Zlib/config.in</userinput></screen>
  56. <para>To have full control over the way Perl is set up, you can run the
  57. interactive <command>Configure</command> script and hand-pick the way this
  58. package is built. If you prefer, you can use the defaults that Perl
  59. auto-detects, by preparing Perl for compilation with:</para>
  60. <screen><userinput remap="configure">sh Configure -des -Dprefix=/usr \
  61. -Dvendorprefix=/usr \
  62. -Dman1dir=/usr/share/man/man1 \
  63. -Dman3dir=/usr/share/man/man3 \
  64. -Dpager="/usr/bin/less -isR"</userinput></screen>
  65. <variablelist>
  66. <title>The meaning of the configure options:</title>
  67. <varlistentry>
  68. <term><parameter>-Dvendorprefix=/usr</parameter></term>
  69. <listitem>
  70. <para>This ensures <command>perl</command> knows how to
  71. tell packages where they should install their perl modules.</para>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry>
  75. <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
  76. <listitem>
  77. <para>This corrects an error in the way that <command>perldoc</command>
  78. invokes the <command>less</command> program.</para>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry>
  82. <term><parameter>-Dman1dir=/usr/share/man/man1
  83. -Dman3dir=/usr/share/man/man3</parameter></term>
  84. <listitem>
  85. <para>Since Groff is not installed yet, <command>Configure</command>
  86. thinks that we do not want man pages for Perl. Issuing these
  87. parameters overrides this decision.</para>
  88. </listitem>
  89. </varlistentry>
  90. </variablelist>
  91. <para>Compile the package:</para>
  92. <screen><userinput remap="make">make</userinput></screen>
  93. <para>To test the results (approximately 2.5 SBU), issue:</para>
  94. <screen><userinput remap="test">make test</userinput></screen>
  95. <para>Install the package:</para>
  96. <screen><userinput remap="install">make install</userinput></screen>
  97. </sect2>
  98. <sect2 id="contents-perl" role="content">
  99. <title>Contents of Perl</title>
  100. <segmentedlist>
  101. <segtitle>Installed programs</segtitle>
  102. <segtitle>Installed libraries</segtitle>
  103. <seglistitem>
  104. <seg>a2p, c2ph, cpan, dprofpp, enc2xs, find2perl, h2ph, h2xs,
  105. instmodsh, libnetcfg, perl, perl&perl-version; (link to perl),
  106. perlbug, perlcc, perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex,
  107. pod2man, pod2text, pod2usage, podchecker, podselect, prove,
  108. psed (link to s2p), pstruct (link to c2ph), s2p, splain, and
  109. xsubpp</seg>
  110. <seg>Several hundred which cannot all be listed here</seg>
  111. </seglistitem>
  112. </segmentedlist>
  113. <variablelist>
  114. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  115. <?dbfo list-presentation="list"?>
  116. <?dbhtml list-presentation="table"?>
  117. <varlistentry id="a2p">
  118. <term><command>a2p</command></term>
  119. <listitem>
  120. <para>Translates awk to Perl</para>
  121. <indexterm zone="ch-system-perl a2p">
  122. <primary sortas="b-a2p">a2p</primary>
  123. </indexterm>
  124. </listitem>
  125. </varlistentry>
  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. <varlistentry id="cpan">
  137. <term><command>cpan</command></term>
  138. <listitem>
  139. <para>Interact with the Comprehensive Perl Archive Network (CPAN)
  140. from the command line</para>
  141. <indexterm zone="ch-system-perl cpan">
  142. <primary sortas="b-cpan">cpan</primary>
  143. </indexterm>
  144. </listitem>
  145. </varlistentry>
  146. <varlistentry id="dprofpp">
  147. <term><command>dprofpp</command></term>
  148. <listitem>
  149. <para>Displays Perl profile data</para>
  150. <indexterm zone="ch-system-perl dprofpp">
  151. <primary sortas="b-dprofpp">dprofpp</primary>
  152. </indexterm>
  153. </listitem>
  154. </varlistentry>
  155. <varlistentry id="enc2xs">
  156. <term><command>enc2xs</command></term>
  157. <listitem>
  158. <para>Builds a Perl extension for the Encode module from either
  159. Unicode Character Mappings or Tcl Encoding Files</para>
  160. <indexterm zone="ch-system-perl enc2xs">
  161. <primary sortas="b-enc2xs">enc2xs</primary>
  162. </indexterm>
  163. </listitem>
  164. </varlistentry>
  165. <varlistentry id="find2perl">
  166. <term><command>find2perl</command></term>
  167. <listitem>
  168. <para>Translates <command>find</command> commands to Perl</para>
  169. <indexterm zone="ch-system-perl find2perl">
  170. <primary sortas="b-find2perl">find2perl</primary>
  171. </indexterm>
  172. </listitem>
  173. </varlistentry>
  174. <varlistentry id="h2ph">
  175. <term><command>h2ph</command></term>
  176. <listitem>
  177. <para>Converts <filename class="extension">.h</filename> C header
  178. files to <filename class="extension">.ph</filename> Perl header
  179. files</para>
  180. <indexterm zone="ch-system-perl h2ph">
  181. <primary sortas="b-h2ph">h2ph</primary>
  182. </indexterm>
  183. </listitem>
  184. </varlistentry>
  185. <varlistentry id="h2xs">
  186. <term><command>h2xs</command></term>
  187. <listitem>
  188. <para>Converts <filename class="extension">.h</filename> C header
  189. files to Perl extensions</para>
  190. <indexterm zone="ch-system-perl h2xs">
  191. <primary sortas="b-h2xs">h2xs</primary>
  192. </indexterm>
  193. </listitem>
  194. </varlistentry>
  195. <varlistentry id="instmodsh">
  196. <term><command>instmodsh</command></term>
  197. <listitem>
  198. <para>Shell script for examining installed Perl modules,
  199. and can even create a tarball from an installed module</para>
  200. <indexterm zone="ch-system-perl instmodsh">
  201. <primary sortas="b-instmodsh">instmodsh</primary>
  202. </indexterm>
  203. </listitem>
  204. </varlistentry>
  205. <varlistentry id="libnetcfg">
  206. <term><command>libnetcfg</command></term>
  207. <listitem>
  208. <para>Can be used to configure the
  209. <filename class="libraryfile">libnet</filename></para>
  210. <indexterm zone="ch-system-perl libnetcfg">
  211. <primary sortas="b-libnetcfg">libnetcfg</primary>
  212. </indexterm>
  213. </listitem>
  214. </varlistentry>
  215. <varlistentry id="perl">
  216. <term><command>perl</command></term>
  217. <listitem>
  218. <para>Combines some of the best features of C, <command>sed</command>,
  219. <command>awk</command> and <command>sh</command> into a single
  220. swiss-army language</para>
  221. <indexterm zone="ch-system-perl perl">
  222. <primary sortas="b-perl">perl</primary>
  223. </indexterm>
  224. </listitem>
  225. </varlistentry>
  226. <varlistentry id="perl-version">
  227. <term><command>perl&perl-version;</command></term>
  228. <listitem>
  229. <para>A hard link to <command>perl</command></para>
  230. <indexterm zone="ch-system-perl perl-version">
  231. <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
  232. </indexterm>
  233. </listitem>
  234. </varlistentry>
  235. <varlistentry id="perlbug">
  236. <term><command>perlbug</command></term>
  237. <listitem>
  238. <para>Used to generate bug reports about Perl, or the modules that come
  239. with it, and mail them</para>
  240. <indexterm zone="ch-system-perl perlbug">
  241. <primary sortas="b-perlbug">perlbug</primary>
  242. </indexterm>
  243. </listitem>
  244. </varlistentry>
  245. <varlistentry id="perlcc">
  246. <term><command>perlcc</command></term>
  247. <listitem>
  248. <para>Generates executables from Perl programs</para>
  249. <indexterm zone="ch-system-perl perlcc">
  250. <primary sortas="b-perlcc">perlcc</primary>
  251. </indexterm>
  252. </listitem>
  253. </varlistentry>
  254. <varlistentry id="perldoc">
  255. <term><command>perldoc</command></term>
  256. <listitem>
  257. <para>Displays a piece of documentation in pod format that is embedded
  258. in the Perl installation tree or in a Perl script</para>
  259. <indexterm zone="ch-system-perl perldoc">
  260. <primary sortas="b-perldoc">perldoc</primary>
  261. </indexterm>
  262. </listitem>
  263. </varlistentry>
  264. <varlistentry id="perlivp">
  265. <term><command>perlivp</command></term>
  266. <listitem>
  267. <para>The Perl Installation Verification Procedure; it can be used to
  268. verify that Perl and its libraries have been installed
  269. correctly</para>
  270. <indexterm zone="ch-system-perl perlivp">
  271. <primary sortas="b-perlivp">perlivp</primary>
  272. </indexterm>
  273. </listitem>
  274. </varlistentry>
  275. <varlistentry id="piconv">
  276. <term><command>piconv</command></term>
  277. <listitem>
  278. <para>A Perl version of the character encoding converter
  279. <command>iconv</command></para>
  280. <indexterm zone="ch-system-perl piconv">
  281. <primary sortas="b-piconv">piconv</primary>
  282. </indexterm>
  283. </listitem>
  284. </varlistentry>
  285. <varlistentry id="pl2pm">
  286. <term><command>pl2pm</command></term>
  287. <listitem>
  288. <para>A rough tool for converting Perl4
  289. <filename class="extension">.pl</filename> files to Perl5
  290. <filename class="extension">.pm</filename> modules</para>
  291. <indexterm zone="ch-system-perl pl2pm">
  292. <primary sortas="b-pl2pm">pl2pm</primary>
  293. </indexterm>
  294. </listitem>
  295. </varlistentry>
  296. <varlistentry id="pod2html">
  297. <term><command>pod2html</command></term>
  298. <listitem>
  299. <para>Converts files from pod format to HTML format</para>
  300. <indexterm zone="ch-system-perl pod2html">
  301. <primary sortas="b-pod2html">pod2html</primary>
  302. </indexterm>
  303. </listitem>
  304. </varlistentry>
  305. <varlistentry id="pod2latex">
  306. <term><command>pod2latex</command></term>
  307. <listitem>
  308. <para>Converts files from pod format to LaTeX format</para>
  309. <indexterm zone="ch-system-perl pod2latex">
  310. <primary sortas="b-pod2latex">pod2latex</primary>
  311. </indexterm>
  312. </listitem>
  313. </varlistentry>
  314. <varlistentry id="pod2man">
  315. <term><command>pod2man</command></term>
  316. <listitem>
  317. <para>Converts pod data to formatted *roff input</para>
  318. <indexterm zone="ch-system-perl pod2man">
  319. <primary sortas="b-pod2man">pod2man</primary>
  320. </indexterm>
  321. </listitem>
  322. </varlistentry>
  323. <varlistentry id="pod2text">
  324. <term><command>pod2text</command></term>
  325. <listitem>
  326. <para>Converts pod data to formatted ASCII text</para>
  327. <indexterm zone="ch-system-perl pod2text">
  328. <primary sortas="b-pod2text">pod2text</primary>
  329. </indexterm>
  330. </listitem>
  331. </varlistentry>
  332. <varlistentry id="pod2usage">
  333. <term><command>pod2usage</command></term>
  334. <listitem>
  335. <para>Prints usage messages from embedded pod docs in files</para>
  336. <indexterm zone="ch-system-perl pod2usage">
  337. <primary sortas="b-pod2usage">pod2usage</primary>
  338. </indexterm>
  339. </listitem>
  340. </varlistentry>
  341. <varlistentry id="podchecker">
  342. <term><command>podchecker</command></term>
  343. <listitem>
  344. <para>Checks the syntax of pod format documentation files</para>
  345. <indexterm zone="ch-system-perl podchecker">
  346. <primary sortas="b-podchecker">podchecker</primary>
  347. </indexterm>
  348. </listitem>
  349. </varlistentry>
  350. <varlistentry id="podselect">
  351. <term><command>podselect</command></term>
  352. <listitem>
  353. <para>Displays selected sections of pod documentation</para>
  354. <indexterm zone="ch-system-perl podselect">
  355. <primary sortas="b-podselect">podselect</primary>
  356. </indexterm>
  357. </listitem>
  358. </varlistentry>
  359. <varlistentry id="prove">
  360. <term><command>prove</command></term>
  361. <listitem>
  362. <para>Command line tool for running tests against the Test::Harness
  363. module.</para>
  364. <indexterm zone="ch-system-perl prove">
  365. <primary sortas="b-prove">prove</primary>
  366. </indexterm>
  367. </listitem>
  368. </varlistentry>
  369. <varlistentry id="psed">
  370. <term><command>psed</command></term>
  371. <listitem>
  372. <para>A Perl version of the stream editor <command>sed</command></para>
  373. <indexterm zone="ch-system-perl psed">
  374. <primary sortas="b-psed">psed</primary>
  375. </indexterm>
  376. </listitem>
  377. </varlistentry>
  378. <varlistentry id="pstruct">
  379. <term><command>pstruct</command></term>
  380. <listitem>
  381. <para>Dumps C structures as generated from <command>cc -g -S</command>
  382. stabs</para>
  383. <indexterm zone="ch-system-perl pstruct">
  384. <primary sortas="b-pstruct">pstruct</primary>
  385. </indexterm>
  386. </listitem>
  387. </varlistentry>
  388. <varlistentry id="s2p">
  389. <term><command>s2p</command></term>
  390. <listitem>
  391. <para>Translates <command>sed</command> scripts to Perl</para>
  392. <indexterm zone="ch-system-perl s2p">
  393. <primary sortas="b-s2p">s2p</primary>
  394. </indexterm>
  395. </listitem>
  396. </varlistentry>
  397. <varlistentry id="splain">
  398. <term><command>splain</command></term>
  399. <listitem>
  400. <para>Is used to force verbose warning diagnostics in Perl</para>
  401. <indexterm zone="ch-system-perl splain">
  402. <primary sortas="b-splain">splain</primary>
  403. </indexterm>
  404. </listitem>
  405. </varlistentry>
  406. <varlistentry id="xsubpp">
  407. <term><command>xsubpp</command></term>
  408. <listitem>
  409. <para>Converts Perl XS code into C code</para>
  410. <indexterm zone="ch-system-perl xsubpp">
  411. <primary sortas="b-xsubpp">xsubpp</primary>
  412. </indexterm>
  413. </listitem>
  414. </varlistentry>
  415. </variablelist>
  416. </sect2>
  417. </sect1>