[8de5f9f] | 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 |
|
---|
| 8 | <sect1 id="ch-system-perl" role="wrap">
|
---|
| 9 | <?dbhtml filename="perl.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Perl-&perl-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-perl">
|
---|
| 14 | <primary sortas="a-Perl">Perl</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Perl package contains the Practical Extraction and Report
|
---|
| 21 | Language.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Perl</title>
|
---|
| 27 |
|
---|
[30531b9] | 28 | <para os="p1">The following patch fixes issues with perl and
|
---|
| 29 | cross-compiling:</para>
|
---|
[8de5f9f] | 30 |
|
---|
[30531b9] | 31 | <screen os="p2"><userinput>patch -Np1 -i ../&perl-cross_compile-patch;</userinput></screen>
|
---|
[8de5f9f] | 32 |
|
---|
[30531b9] | 33 | <para os="a">The Cross directory contains a Makefile for cross-compiling.</para>
|
---|
[8de5f9f] | 34 |
|
---|
[c62fb2a] | 35 | <para os="p3">The following patch causes <filename>DynaLoader.a</filename>
|
---|
| 36 | to be built with -fPIC so it can be linked into a shared library
|
---|
| 37 | later.</para>
|
---|
| 38 |
|
---|
| 39 | <screen os="p4"><userinput>patch -Np1 -i ../&perl-fpic-patch;</userinput></screen>
|
---|
| 40 |
|
---|
[30531b9] | 41 | <screen os="b"><userinput>cd Cross</userinput></screen>
|
---|
[8de5f9f] | 42 |
|
---|
[30531b9] | 43 | <para os="c">Compile the package:</para>
|
---|
[8de5f9f] | 44 |
|
---|
[586feb7] | 45 | <screen os="d"><userinput>make ARCH=arm CROSS_COMPILE="${CLFS_TARGET}-"</userinput></screen>
|
---|
[8de5f9f] | 46 |
|
---|
[30531b9] | 47 | <para os="e">Install the package:</para>
|
---|
[8de5f9f] | 48 |
|
---|
[30531b9] | 49 | <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
|
---|
[8de5f9f] | 50 |
|
---|
| 51 | </sect2>
|
---|
| 52 |
|
---|
[30531b9] | 53 | <sect2 id="contents-perl" role="content">
|
---|
| 54 | <title>Contents of Perl</title>
|
---|
| 55 |
|
---|
| 56 | <segmentedlist>
|
---|
| 57 | <segtitle>Installed programs</segtitle>
|
---|
| 58 | <segtitle>Installed libraries</segtitle>
|
---|
| 59 |
|
---|
| 60 | <seglistitem>
|
---|
| 61 | <seg>a2p, c2ph, cpan, dprofpp, enc2xs, find2perl, h2ph, h2xs, instmodsh, libnetcfg,
|
---|
| 62 | perl, perl&perl-version; (link to perl), perlbug, perlcc, perldoc,
|
---|
| 63 | perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man, pod2text,
|
---|
| 64 | pod2usage, podchecker, podselect, prove, psed (link to s2p), pstruct (link
|
---|
| 65 | to c2ph), s2p, splain, and xsubpp</seg>
|
---|
| 66 | <seg>Several hundred which cannot all be listed here</seg>
|
---|
| 67 | </seglistitem>
|
---|
| 68 | </segmentedlist>
|
---|
| 69 |
|
---|
| 70 | <variablelist>
|
---|
| 71 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 72 | <?dbfo list-presentation="list"?>
|
---|
| 73 | <?dbhtml list-presentation="table"?>
|
---|
| 74 |
|
---|
| 75 | <varlistentry id="a2p">
|
---|
| 76 | <term><command>a2p</command></term>
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>Translates awk to Perl</para>
|
---|
| 79 | <indexterm zone="ch-system-perl a2p">
|
---|
| 80 | <primary sortas="b-a2p">a2p</primary>
|
---|
| 81 | </indexterm>
|
---|
| 82 | </listitem>
|
---|
| 83 | </varlistentry>
|
---|
| 84 |
|
---|
| 85 | <varlistentry id="c2ph">
|
---|
| 86 | <term><command>c2ph</command></term>
|
---|
| 87 | <listitem>
|
---|
| 88 | <para>Dumps C structures as generated from
|
---|
| 89 | <command>cc -g -S</command></para>
|
---|
| 90 | <indexterm zone="ch-system-perl c2ph">
|
---|
| 91 | <primary sortas="b-c2ph">c2ph</primary>
|
---|
| 92 | </indexterm>
|
---|
| 93 | </listitem>
|
---|
| 94 | </varlistentry>
|
---|
| 95 |
|
---|
| 96 | <varlistentry id="cpan">
|
---|
| 97 | <term><command>cpan</command></term>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>Shell script that provides a command interface to CPAN.pm</para>
|
---|
| 100 | <indexterm zone="ch-system-perl cpan">
|
---|
| 101 | <primary sortas="b-cpan">cpan</primary>
|
---|
| 102 | </indexterm>
|
---|
| 103 | </listitem>
|
---|
| 104 | </varlistentry>
|
---|
| 105 |
|
---|
| 106 | <varlistentry id="dprofpp">
|
---|
| 107 | <term><command>dprofpp</command></term>
|
---|
| 108 | <listitem>
|
---|
| 109 | <para>Displays Perl profile data</para>
|
---|
| 110 | <indexterm zone="ch-system-perl dprofpp">
|
---|
| 111 | <primary sortas="b-dprofpp">dprofpp</primary>
|
---|
| 112 | </indexterm>
|
---|
| 113 | </listitem>
|
---|
| 114 | </varlistentry>
|
---|
| 115 |
|
---|
| 116 | <varlistentry id="enc2xs">
|
---|
| 117 | <term><command>enc2xs</command></term>
|
---|
| 118 | <listitem>
|
---|
| 119 | <para>Builds a Perl extension for the Encode module from either
|
---|
| 120 | Unicode Character Mappings or Tcl Encoding Files</para>
|
---|
| 121 | <indexterm zone="ch-system-perl enc2xs">
|
---|
| 122 | <primary sortas="b-enc2xs">enc2xs</primary>
|
---|
| 123 | </indexterm>
|
---|
| 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
| 126 |
|
---|
| 127 | <varlistentry id="find2perl">
|
---|
| 128 | <term><command>find2perl</command></term>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para>Translates <command>find</command> commands to Perl</para>
|
---|
| 131 | <indexterm zone="ch-system-perl find2perl">
|
---|
| 132 | <primary sortas="b-find2perl">find2perl</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
| 136 |
|
---|
| 137 | <varlistentry id="h2ph">
|
---|
| 138 | <term><command>h2ph</command></term>
|
---|
| 139 | <listitem>
|
---|
| 140 | <para>Converts <filename class="extension">.h</filename> C header
|
---|
| 141 | files to <filename class="extension">.ph</filename> Perl header
|
---|
| 142 | files</para>
|
---|
| 143 | <indexterm zone="ch-system-perl h2ph">
|
---|
| 144 | <primary sortas="b-h2ph">h2ph</primary>
|
---|
| 145 | </indexterm>
|
---|
| 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="h2xs">
|
---|
| 150 | <term><command>h2xs</command></term>
|
---|
| 151 | <listitem>
|
---|
| 152 | <para>Converts <filename class="extension">.h</filename> C header
|
---|
| 153 | files to Perl extensions</para>
|
---|
| 154 | <indexterm zone="ch-system-perl h2xs">
|
---|
| 155 | <primary sortas="b-h2xs">h2xs</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
| 159 |
|
---|
| 160 | <varlistentry id="libnetcfg">
|
---|
| 161 | <term><command>libnetcfg</command></term>
|
---|
| 162 | <listitem>
|
---|
| 163 | <para>Can be used to configure the
|
---|
| 164 | <filename class="libraryfile">libnet</filename></para>
|
---|
| 165 | <indexterm zone="ch-system-perl libnetcfg">
|
---|
| 166 | <primary sortas="b-libnetcfg">libnetcfg</primary>
|
---|
| 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
| 170 |
|
---|
| 171 | <varlistentry id="instmodsh">
|
---|
| 172 | <term><command>instmodsh</command></term>
|
---|
| 173 | <listitem>
|
---|
| 174 | <para>A shell script for examining installed Perl modules,
|
---|
| 175 | and can even create a tarball from an installed module</para>
|
---|
| 176 | <indexterm zone="ch-system-perl instmodsh">
|
---|
| 177 | <primary sortas="b-instmodsh">instmodsh</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="perl">
|
---|
| 183 | <term><command>perl</command></term>
|
---|
| 184 | <listitem>
|
---|
| 185 | <para>Combines some of the best features of C, <command>sed</command>,
|
---|
| 186 | <command>awk</command> and <command>sh</command> into a single
|
---|
| 187 | swiss-army-knife language</para>
|
---|
| 188 | <indexterm zone="ch-system-perl perl">
|
---|
| 189 | <primary sortas="b-perl">perl</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | <varlistentry id="perl-version">
|
---|
| 195 | <term><command>perl&perl-version;</command></term>
|
---|
| 196 | <listitem>
|
---|
| 197 | <para>A hard link to <command>perl</command></para>
|
---|
| 198 | <indexterm zone="ch-system-perl perl-version">
|
---|
| 199 | <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="perlbug">
|
---|
| 205 | <term><command>perlbug</command></term>
|
---|
| 206 | <listitem>
|
---|
| 207 | <para>Used to generate bug reports about Perl, or the modules that come
|
---|
| 208 | with it, and mail them</para>
|
---|
| 209 | <indexterm zone="ch-system-perl perlbug">
|
---|
| 210 | <primary sortas="b-perlbug">perlbug</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry id="perlcc">
|
---|
| 216 | <term><command>perlcc</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>Generates executables from Perl programs</para>
|
---|
| 219 | <indexterm zone="ch-system-perl perlcc">
|
---|
| 220 | <primary sortas="b-perlcc">perlcc</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="perldoc">
|
---|
| 226 | <term><command>perldoc</command></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>Displays a piece of documentation in pod format that is embedded
|
---|
| 229 | in the Perl installation tree or in a Perl script</para>
|
---|
| 230 | <indexterm zone="ch-system-perl perldoc">
|
---|
| 231 | <primary sortas="b-perldoc">perldoc</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="perlivp">
|
---|
| 237 | <term><command>perlivp</command></term>
|
---|
| 238 | <listitem>
|
---|
| 239 | <para>The Perl Installation Verification Procedure; it can be used to
|
---|
| 240 | verify that Perl and its libraries have been installed
|
---|
| 241 | correctly</para>
|
---|
| 242 | <indexterm zone="ch-system-perl perlivp">
|
---|
| 243 | <primary sortas="b-perlivp">perlivp</primary>
|
---|
| 244 | </indexterm>
|
---|
| 245 | </listitem>
|
---|
| 246 | </varlistentry>
|
---|
| 247 |
|
---|
| 248 | <varlistentry id="piconv">
|
---|
| 249 | <term><command>piconv</command></term>
|
---|
| 250 | <listitem>
|
---|
| 251 | <para>A Perl version of the character encoding converter
|
---|
| 252 | <command>iconv</command></para>
|
---|
| 253 | <indexterm zone="ch-system-perl piconv">
|
---|
| 254 | <primary sortas="b-piconv">piconv</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
| 259 | <varlistentry id="pl2pm">
|
---|
| 260 | <term><command>pl2pm</command></term>
|
---|
| 261 | <listitem>
|
---|
| 262 | <para>A rough tool for converting Perl4
|
---|
| 263 | <filename class="extension">.pl</filename> files to Perl5
|
---|
| 264 | <filename class="extension">.pm</filename> modules</para>
|
---|
| 265 | <indexterm zone="ch-system-perl pl2pm">
|
---|
| 266 | <primary sortas="b-pl2pm">pl2pm</primary>
|
---|
| 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
| 270 |
|
---|
| 271 | <varlistentry id="pod2html">
|
---|
| 272 | <term><command>pod2html</command></term>
|
---|
| 273 | <listitem>
|
---|
| 274 | <para>Converts files from pod format to HTML format</para>
|
---|
| 275 | <indexterm zone="ch-system-perl pod2html">
|
---|
| 276 | <primary sortas="b-pod2html">pod2html</primary>
|
---|
| 277 | </indexterm>
|
---|
| 278 | </listitem>
|
---|
| 279 | </varlistentry>
|
---|
| 280 |
|
---|
| 281 | <varlistentry id="pod2latex">
|
---|
| 282 | <term><command>pod2latex</command></term>
|
---|
| 283 | <listitem>
|
---|
| 284 | <para>Converts files from pod format to LaTeX format</para>
|
---|
| 285 | <indexterm zone="ch-system-perl pod2latex">
|
---|
| 286 | <primary sortas="b-pod2latex">pod2latex</primary>
|
---|
| 287 | </indexterm>
|
---|
| 288 | </listitem>
|
---|
| 289 | </varlistentry>
|
---|
| 290 |
|
---|
| 291 | <varlistentry id="pod2man">
|
---|
| 292 | <term><command>pod2man</command></term>
|
---|
| 293 | <listitem>
|
---|
| 294 | <para>Converts pod data to formatted *roff input</para>
|
---|
| 295 | <indexterm zone="ch-system-perl pod2man">
|
---|
| 296 | <primary sortas="b-pod2man">pod2man</primary>
|
---|
| 297 | </indexterm>
|
---|
| 298 | </listitem>
|
---|
| 299 | </varlistentry>
|
---|
| 300 |
|
---|
| 301 | <varlistentry id="pod2text">
|
---|
| 302 | <term><command>pod2text</command></term>
|
---|
| 303 | <listitem>
|
---|
| 304 | <para>Converts pod data to formatted ASCII text</para>
|
---|
| 305 | <indexterm zone="ch-system-perl pod2text">
|
---|
| 306 | <primary sortas="b-pod2text">pod2text</primary>
|
---|
| 307 | </indexterm>
|
---|
| 308 | </listitem>
|
---|
| 309 | </varlistentry>
|
---|
| 310 |
|
---|
| 311 | <varlistentry id="pod2usage">
|
---|
| 312 | <term><command>pod2usage</command></term>
|
---|
| 313 | <listitem>
|
---|
| 314 | <para>Prints usage messages from embedded pod docs in files</para>
|
---|
| 315 | <indexterm zone="ch-system-perl pod2usage">
|
---|
| 316 | <primary sortas="b-pod2usage">pod2usage</primary>
|
---|
| 317 | </indexterm>
|
---|
| 318 | </listitem>
|
---|
| 319 | </varlistentry>
|
---|
| 320 |
|
---|
| 321 | <varlistentry id="podchecker">
|
---|
| 322 | <term><command>podchecker</command></term>
|
---|
| 323 | <listitem>
|
---|
| 324 | <para>Checks the syntax of pod format documentation files</para>
|
---|
| 325 | <indexterm zone="ch-system-perl podchecker">
|
---|
| 326 | <primary sortas="b-podchecker">podchecker</primary>
|
---|
| 327 | </indexterm>
|
---|
| 328 | </listitem>
|
---|
| 329 | </varlistentry>
|
---|
| 330 |
|
---|
| 331 | <varlistentry id="podselect">
|
---|
| 332 | <term><command>podselect</command></term>
|
---|
| 333 | <listitem>
|
---|
| 334 | <para>Displays selected sections of pod documentation</para>
|
---|
| 335 | <indexterm zone="ch-system-perl podselect">
|
---|
| 336 | <primary sortas="b-podselect">podselect</primary>
|
---|
| 337 | </indexterm>
|
---|
| 338 | </listitem>
|
---|
| 339 | </varlistentry>
|
---|
| 340 |
|
---|
| 341 | <varlistentry id="prove">
|
---|
| 342 | <term><command>prove</command></term>
|
---|
| 343 | <listitem>
|
---|
| 344 | <para>A command-line tool for running tests against Test::Harness</para>
|
---|
| 345 | <indexterm zone="ch-system-perl prove">
|
---|
| 346 | <primary sortas="b-prove">prove</primary>
|
---|
| 347 | </indexterm>
|
---|
| 348 | </listitem>
|
---|
| 349 | </varlistentry>
|
---|
| 350 |
|
---|
| 351 | <varlistentry id="psed">
|
---|
| 352 | <term><command>psed</command></term>
|
---|
| 353 | <listitem>
|
---|
| 354 | <para>A Perl version of the stream editor <command>sed</command></para>
|
---|
| 355 | <indexterm zone="ch-system-perl psed">
|
---|
| 356 | <primary sortas="b-psed">psed</primary>
|
---|
| 357 | </indexterm>
|
---|
| 358 | </listitem>
|
---|
| 359 | </varlistentry>
|
---|
| 360 |
|
---|
| 361 | <varlistentry id="pstruct">
|
---|
| 362 | <term><command>pstruct</command></term>
|
---|
| 363 | <listitem>
|
---|
| 364 | <para>Dumps C structures as generated from <command>cc -g -S</command>
|
---|
| 365 | stabs</para>
|
---|
| 366 | <indexterm zone="ch-system-perl pstruct">
|
---|
| 367 | <primary sortas="b-pstruct">pstruct</primary>
|
---|
| 368 | </indexterm>
|
---|
| 369 | </listitem>
|
---|
| 370 | </varlistentry>
|
---|
| 371 |
|
---|
| 372 | <varlistentry id="s2p">
|
---|
| 373 | <term><command>s2p</command></term>
|
---|
| 374 | <listitem>
|
---|
| 375 | <para>Translates <command>sed</command> to Perl</para>
|
---|
| 376 | <indexterm zone="ch-system-perl s2p">
|
---|
| 377 | <primary sortas="b-s2p">s2p</primary>
|
---|
| 378 | </indexterm>
|
---|
| 379 | </listitem>
|
---|
| 380 | </varlistentry>
|
---|
| 381 |
|
---|
| 382 | <varlistentry id="splain">
|
---|
| 383 | <term><command>splain</command></term>
|
---|
| 384 | <listitem>
|
---|
| 385 | <para>Is used to force verbose warning diagnostics in Perl</para>
|
---|
| 386 | <indexterm zone="ch-system-perl splain">
|
---|
| 387 | <primary sortas="b-splain">splain</primary>
|
---|
| 388 | </indexterm>
|
---|
| 389 | </listitem>
|
---|
| 390 | </varlistentry>
|
---|
| 391 |
|
---|
| 392 | <varlistentry id="xsubpp">
|
---|
| 393 | <term><command>xsubpp</command></term>
|
---|
| 394 | <listitem>
|
---|
| 395 | <para>Converts Perl XS code into C code</para>
|
---|
| 396 | <indexterm zone="ch-system-perl xsubpp">
|
---|
| 397 | <primary sortas="b-xsubpp">xsubpp</primary>
|
---|
| 398 | </indexterm>
|
---|
| 399 | </listitem>
|
---|
| 400 | </varlistentry>
|
---|
| 401 |
|
---|
| 402 | </variablelist>
|
---|
| 403 |
|
---|
| 404 | </sect2>
|
---|
[8de5f9f] | 405 |
|
---|
| 406 | </sect1>
|
---|