1
0

perl.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/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. <title>Perl-&perl-version;</title>
  10. <indexterm zone="ch-system-perl">
  11. <primary sortas="a-Perl">Perl</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The Perl package contains the Practical Extraction and Report
  16. Language.</para>
  17. <segmentedlist>
  18. <segtitle>&buildtime;</segtitle>
  19. <segtitle>&diskspace;</segtitle>
  20. <seglistitem>
  21. <seg>2.9 SBU</seg>
  22. <seg>137 MB</seg>
  23. </seglistitem>
  24. </segmentedlist>
  25. <segmentedlist>
  26. <segtitle>&dependencies;</segtitle>
  27. <seglistitem>
  28. <seg>Bash, Berkeley DB, Binutils, Coreutils, Diffutils, Gawk, GCC,
  29. Glibc, Grep, Make, and Sed</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of Perl</title>
  35. <para>A security vulnerability exists in Perl's sprintf function. Apply the
  36. following patch to fix it.</para>
  37. <screen><userinput>patch -Np1 -i ../&perl-sprintf-patch;</userinput></screen>
  38. <para>The DB_File module that comes with Perl-&perl-version; is incompatible
  39. with Berkeley DB-&db-version; (the testsuite fails if this module gets built).
  40. Apply the following patch in order to update the DB_File module:</para>
  41. <screen><userinput>patch -Np1 -i ../&perl-db_file-patch;</userinput></screen>
  42. <para>First create a basic <filename>/etc/hosts</filename> file which will be
  43. referenced in one of Perl's configuration files as well as being used used by
  44. the testsuite if you run that.</para>
  45. <screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
  46. <para>To have full control over the way Perl is set up, run the
  47. interactive <command>Configure</command> script and hand-pick the way
  48. this package is built. If the defaults it auto-detects are suitable,
  49. prepare Perl for compilation with:</para>
  50. <screen><userinput>./configure.gnu --prefix=/usr -Dpager="/usr/bin/less -isR"</userinput></screen>
  51. <variablelist>
  52. <title>The meaning of the configure options:</title>
  53. <varlistentry>
  54. <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
  55. <listitem>
  56. <para>This corrects an error in the way that <command>perldoc</command>
  57. invokes the <command>less</command> program.</para>
  58. </listitem>
  59. </varlistentry>
  60. </variablelist>
  61. <para>Compile the package:</para>
  62. <screen><userinput>make</userinput></screen>
  63. <para>Now run the tests, if desired:</para>
  64. <screen><userinput>make test</userinput></screen>
  65. <para>Install the package:</para>
  66. <screen><userinput>make install</userinput></screen>
  67. </sect2>
  68. <sect2 id="contents-perl" role="content">
  69. <title>Contents of Perl</title>
  70. <segmentedlist>
  71. <segtitle>Installed programs</segtitle>
  72. <segtitle>Installed libraries</segtitle>
  73. <seglistitem>
  74. <seg>a2p, c2ph, dprofpp, enc2xs, find2perl, h2ph, h2xs, libnetcfg, perl,
  75. perl&perl-version; (link to perl), perlbug, perlcc, perldoc, perlivp,
  76. piconv, pl2pm, pod2html, pod2latex, pod2man, pod2text, pod2usage,
  77. podchecker, podselect, psed (link to s2p), pstruct (link to c2ph), s2p,
  78. splain, and xsubpp</seg>
  79. <seg>Several hundred which cannot all be listed here</seg>
  80. </seglistitem>
  81. </segmentedlist>
  82. <variablelist>
  83. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  84. <?dbfo list-presentation="list"?>
  85. <?dbhtml list-presentation="table"?>
  86. <varlistentry id="a2p">
  87. <term><command>a2p</command></term>
  88. <listitem>
  89. <para>Translates awk to Perl</para>
  90. <indexterm zone="ch-system-perl a2p">
  91. <primary sortas="b-a2p">a2p</primary>
  92. </indexterm>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry id="c2ph">
  96. <term><command>c2ph</command></term>
  97. <listitem>
  98. <para>Dumps C structures as generated from
  99. <command>cc -g -S</command></para>
  100. <indexterm zone="ch-system-perl c2ph">
  101. <primary sortas="b-c2ph">c2ph</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="dprofpp">
  106. <term><command>dprofpp</command></term>
  107. <listitem>
  108. <para>Displays Perl profile data</para>
  109. <indexterm zone="ch-system-perl dprofpp">
  110. <primary sortas="b-dprofpp">dprofpp</primary>
  111. </indexterm>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="en2cxs">
  115. <term><command>en2cxs</command></term>
  116. <listitem>
  117. <para>Builds a Perl extension for the Encode module from either
  118. Unicode Character Mappings or Tcl Encoding Files</para>
  119. <indexterm zone="ch-system-perl en2cxs">
  120. <primary sortas="b-en2cxs">en2cxs</primary>
  121. </indexterm>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry id="find2perl">
  125. <term><command>find2perl</command></term>
  126. <listitem>
  127. <para>Translates <command>find</command> commands to Perl</para>
  128. <indexterm zone="ch-system-perl find2perl">
  129. <primary sortas="b-find2perl">find2perl</primary>
  130. </indexterm>
  131. </listitem>
  132. </varlistentry>
  133. <varlistentry id="h2ph">
  134. <term><command>h2ph</command></term>
  135. <listitem>
  136. <para>Converts <filename class="extension">.h</filename> C header
  137. files to <filename class="extension">.ph</filename> Perl header
  138. files</para>
  139. <indexterm zone="ch-system-perl h2ph">
  140. <primary sortas="b-h2ph">h2ph</primary>
  141. </indexterm>
  142. </listitem>
  143. </varlistentry>
  144. <varlistentry id="h2xs">
  145. <term><command>h2xs</command></term>
  146. <listitem>
  147. <para>Converts <filename class="extension">.h</filename> C header
  148. files to Perl extensions</para>
  149. <indexterm zone="ch-system-perl h2xs">
  150. <primary sortas="b-h2xs">h2xs</primary>
  151. </indexterm>
  152. </listitem>
  153. </varlistentry>
  154. <varlistentry id="libnetcfg">
  155. <term><command>libnetcfg</command></term>
  156. <listitem>
  157. <para>Can be used to configure the
  158. <filename class="libraryfile">libnet</filename></para>
  159. <indexterm zone="ch-system-perl libnetcfg">
  160. <primary sortas="b-libnetcfg">libnetcfg</primary>
  161. </indexterm>
  162. </listitem>
  163. </varlistentry>
  164. <varlistentry id="perl">
  165. <term><command>perl</command></term>
  166. <listitem>
  167. <para>Combines some of the best features of C, <command>sed</command>,
  168. <command>awk</command> and <command>sh</command> into a single
  169. swiss-army language</para>
  170. <indexterm zone="ch-system-perl perl">
  171. <primary sortas="b-perl">perl</primary>
  172. </indexterm>
  173. </listitem>
  174. </varlistentry>
  175. <varlistentry id="perl-version">
  176. <term><command>perl&perl-version;</command></term>
  177. <listitem>
  178. <para>A hard link to <command>perl</command></para>
  179. <indexterm zone="ch-system-perl perl-version">
  180. <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
  181. </indexterm>
  182. </listitem>
  183. </varlistentry>
  184. <varlistentry id="perlbug">
  185. <term><command>perlbug</command></term>
  186. <listitem>
  187. <para>Used to generate bug reports about Perl, or the modules that come
  188. with it, and mail them</para>
  189. <indexterm zone="ch-system-perl perlbug">
  190. <primary sortas="b-perlbug">perlbug</primary>
  191. </indexterm>
  192. </listitem>
  193. </varlistentry>
  194. <varlistentry id="perlcc">
  195. <term><command>perlcc</command></term>
  196. <listitem>
  197. <para>Generates executables from Perl programs</para>
  198. <indexterm zone="ch-system-perl perlcc">
  199. <primary sortas="b-perlcc">perlcc</primary>
  200. </indexterm>
  201. </listitem>
  202. </varlistentry>
  203. <varlistentry id="perldoc">
  204. <term><command>perldoc</command></term>
  205. <listitem>
  206. <para>Displays a piece of documentation in pod format that is embedded
  207. in the Perl installation tree or in a Perl script</para>
  208. <indexterm zone="ch-system-perl perldoc">
  209. <primary sortas="b-perldoc">perldoc</primary>
  210. </indexterm>
  211. </listitem>
  212. </varlistentry>
  213. <varlistentry id="perlivp">
  214. <term><command>perlivp</command></term>
  215. <listitem>
  216. <para>The Perl Installation Verification Procedure; it can be used to
  217. verify that Perl and its libraries have been installed
  218. correctly</para>
  219. <indexterm zone="ch-system-perl perlivp">
  220. <primary sortas="b-perlivp">perlivp</primary>
  221. </indexterm>
  222. </listitem>
  223. </varlistentry>
  224. <varlistentry id="piconv">
  225. <term><command>piconv</command></term>
  226. <listitem>
  227. <para>A Perl version of the character encoding converter
  228. <command>iconv</command></para>
  229. <indexterm zone="ch-system-perl piconv">
  230. <primary sortas="b-piconv">piconv</primary>
  231. </indexterm>
  232. </listitem>
  233. </varlistentry>
  234. <varlistentry id="pl2pm">
  235. <term><command>pl2pm</command></term>
  236. <listitem>
  237. <para>A rough tool for converting Perl4
  238. <filename class="extension">.pl</filename> files to Perl5
  239. <filename class="extension">.pm</filename> modules</para>
  240. <indexterm zone="ch-system-perl pl2pm">
  241. <primary sortas="b-pl2pm">pl2pm</primary>
  242. </indexterm>
  243. </listitem>
  244. </varlistentry>
  245. <varlistentry id="pod2html">
  246. <term><command>pod2html</command></term>
  247. <listitem>
  248. <para>Converts files from pod format to HTML format</para>
  249. <indexterm zone="ch-system-perl pod2html">
  250. <primary sortas="b-pod2html">pod2html</primary>
  251. </indexterm>
  252. </listitem>
  253. </varlistentry>
  254. <varlistentry id="pod2latex">
  255. <term><command>pod2latex</command></term>
  256. <listitem>
  257. <para>Converts files from pod format to LaTeX format</para>
  258. <indexterm zone="ch-system-perl pod2latex">
  259. <primary sortas="b-pod2latex">pod2latex</primary>
  260. </indexterm>
  261. </listitem>
  262. </varlistentry>
  263. <varlistentry id="pod2man">
  264. <term><command>pod2man</command></term>
  265. <listitem>
  266. <para>Converts pod data to formatted *roff input</para>
  267. <indexterm zone="ch-system-perl pod2man">
  268. <primary sortas="b-pod2man">pod2man</primary>
  269. </indexterm>
  270. </listitem>
  271. </varlistentry>
  272. <varlistentry id="pod2text">
  273. <term><command>pod2text</command></term>
  274. <listitem>
  275. <para>Converts pod data to formatted ASCII text</para>
  276. <indexterm zone="ch-system-perl pod2text">
  277. <primary sortas="b-pod2text">pod2text</primary>
  278. </indexterm>
  279. </listitem>
  280. </varlistentry>
  281. <varlistentry id="pod2usage">
  282. <term><command>pod2usage</command></term>
  283. <listitem>
  284. <para>Prints usage messages from embedded pod docs in files</para>
  285. <indexterm zone="ch-system-perl pod2usage">
  286. <primary sortas="b-pod2usage">pod2usage</primary>
  287. </indexterm>
  288. </listitem>
  289. </varlistentry>
  290. <varlistentry id="podchecker">
  291. <term><command>podchecker</command></term>
  292. <listitem>
  293. <para>Checks the syntax of pod format documentation files</para>
  294. <indexterm zone="ch-system-perl podchecker">
  295. <primary sortas="b-podchecker">podchecker</primary>
  296. </indexterm>
  297. </listitem>
  298. </varlistentry>
  299. <varlistentry id="podselect">
  300. <term><command>podselect</command></term>
  301. <listitem>
  302. <para>Displays selected sections of pod documentation</para>
  303. <indexterm zone="ch-system-perl podselect">
  304. <primary sortas="b-podselect">podselect</primary>
  305. </indexterm>
  306. </listitem>
  307. </varlistentry>
  308. <varlistentry id="psed">
  309. <term><command>psed</command></term>
  310. <listitem>
  311. <para>A Perl version of the stream editor <command>sed</command></para>
  312. <indexterm zone="ch-system-perl psed">
  313. <primary sortas="b-psed">psed</primary>
  314. </indexterm>
  315. </listitem>
  316. </varlistentry>
  317. <varlistentry id="pstruct">
  318. <term><command>pstruct</command></term>
  319. <listitem>
  320. <para>Dumps C structures as generated from <command>cc -g -S</command>
  321. stabs</para>
  322. <indexterm zone="ch-system-perl pstruct">
  323. <primary sortas="b-pstruct">pstruct</primary>
  324. </indexterm>
  325. </listitem>
  326. </varlistentry>
  327. <varlistentry id="s2p">
  328. <term><command>s2p</command></term>
  329. <listitem>
  330. <para>Translates <command>sed</command> scripts to Perl</para>
  331. <indexterm zone="ch-system-perl s2p">
  332. <primary sortas="b-s2p">s2p</primary>
  333. </indexterm>
  334. </listitem>
  335. </varlistentry>
  336. <varlistentry id="splain">
  337. <term><command>splain</command></term>
  338. <listitem>
  339. <para>Is used to force verbose warning diagnostics in Perl</para>
  340. <indexterm zone="ch-system-perl splain">
  341. <primary sortas="b-splain">splain</primary>
  342. </indexterm>
  343. </listitem>
  344. </varlistentry>
  345. <varlistentry id="xsubpp">
  346. <term><command>xsubpp</command></term>
  347. <listitem>
  348. <para>Converts Perl XS code into C code</para>
  349. <indexterm zone="ch-system-perl xsubpp">
  350. <primary sortas="b-xsubpp">xsubpp</primary>
  351. </indexterm>
  352. </listitem>
  353. </varlistentry>
  354. </variablelist>
  355. </sect2>
  356. </sect1>