[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[71398d29] | 7 | <!ENTITY LFS-Perl-version "5.8.5">
|
---|
[52d29f7] | 8 | ]>
|
---|
| 9 |
|
---|
[24a37fa7] | 10 | <sect1 id="perl-modules" xreflabel="Perl modules">
|
---|
[71398d29] | 11 | <sect1info>
|
---|
[5cd0959d] | 12 | <othername>$LastChangedBy$</othername>
|
---|
| 13 | <date>$Date$</date>
|
---|
[71398d29] | 14 | </sect1info>
|
---|
[19aa75a] | 15 | <?dbhtml filename="perl-modules.html" ?>
|
---|
[24a37fa7] | 16 | <title>Perl modules</title>
|
---|
[3d60760] | 17 |
|
---|
[52d29f7] | 18 | <sect2>
|
---|
| 19 | <title>Introduction to <application>Perl</application> modules</title>
|
---|
| 20 |
|
---|
| 21 | <para>The <application>Perl</application> module packages add useful objects
|
---|
| 22 | to the <application>Perl</application> language. Modules utilized by packages
|
---|
| 23 | throughout <acronym>BLFS</acronym> are listed here, along with their
|
---|
| 24 | dependencies.</para>
|
---|
| 25 |
|
---|
[6a0d7b2] | 26 | <sect3><title><application>Perl</application> Module Packages</title>
|
---|
[52d29f7] | 27 | <itemizedlist spacing='compact'>
|
---|
| 28 | <listitem><para><ulink
|
---|
[71398d29] | 29 | url="http://search.cpan.org/CPAN/authors/id/C/CS/CSOE/PDL-&PDL-version;.tar.gz">PDL-&PDL-version;</ulink>
|
---|
| 30 | </para><itemizedlist spacing='compact'>
|
---|
[52d29f7] | 31 |
|
---|
[cebbbb5] | 32 | <listitem><para><ulink
|
---|
[71398d29] | 33 | url="http://www.cpan.org/authors/id/K/KG/KGB/ExtUtils-F77-&ExtUtils-F77-version;.tar.gz">ExtUtils-F77-&ExtUtils-F77-version;</ulink>
|
---|
| 34 | </para></listitem>
|
---|
[cebbbb5] | 35 |
|
---|
| 36 | <listitem><para><ulink
|
---|
[71398d29] | 37 | url="http://www.cpan.org/authors/id/I/IN/INGY/Inline-&Inline-version;.tar.gz">Inline-&Inline-version;</ulink>
|
---|
| 38 | </para><itemizedlist spacing='compact'>
|
---|
[cebbbb5] | 39 |
|
---|
| 40 | <listitem><para><ulink
|
---|
[71398d29] | 41 | url="http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-&Parse-RecDescent-version;.tar.gz">Parse-RecDescent-&Parse-RecDescent-version;</ulink>
|
---|
| 42 | </para></listitem></itemizedlist></listitem>
|
---|
[cebbbb5] | 43 |
|
---|
[52d29f7] | 44 | <listitem><para><ulink
|
---|
[71398d29] | 45 | url="http://search.cpan.org/CPAN/authors/id/A/AA/AALLAN/Astro-FITS-Header-&Astro-FITS-Header-version;.tar.gz">Astro-FITS-Header-&Astro-FITS-Header-version;</ulink>
|
---|
| 46 | </para></listitem></itemizedlist></listitem>
|
---|
[52d29f7] | 47 |
|
---|
| 48 | <listitem><para><ulink
|
---|
[71398d29] | 49 | url="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">Gtk-Perl-&Gtk-Perl-version;</ulink>
|
---|
| 50 | </para><itemizedlist spacing='compact'>
|
---|
[52d29f7] | 51 |
|
---|
| 52 | <listitem><para><ulink
|
---|
[71398d29] | 53 | url="http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-&XML-Writer-version;.tar.gz">XML-Writer-&XML-Writer-version;</ulink>
|
---|
| 54 | </para></listitem>
|
---|
[52d29f7] | 55 |
|
---|
| 56 | <listitem><para><ulink
|
---|
[cf3ab518] | 57 | url="http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">XML-Parser-&XML-Parser-version;</ulink></para><itemizedlist spacing='compact'>
|
---|
| 58 |
|
---|
| 59 | <listitem><para><xref linkend="expat"/></para></listitem></itemizedlist>
|
---|
| 60 | </listitem>
|
---|
[71398d29] | 61 |
|
---|
| 62 | <listitem><para><xref linkend="GTK"/></para>
|
---|
| 63 | </listitem></itemizedlist></listitem>
|
---|
[52d29f7] | 64 |
|
---|
[e6f8f78] | 65 | <listitem><para><ulink
|
---|
[71398d29] | 66 | url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">SGMLSpm-&SGMLSpm-version;</ulink>
|
---|
| 67 | </para></listitem>
|
---|
[6a0d7b2] | 68 |
|
---|
| 69 | <listitem><para><ulink
|
---|
[71398d29] | 70 | url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">Tk-&Perl-Tk-version;</ulink>
|
---|
| 71 | </para><itemizedlist spacing='compact'>
|
---|
[6a0d7b2] | 72 |
|
---|
[71398d29] | 73 | <listitem><para><xref linkend="tk"/> and
|
---|
| 74 | <xref linkend="libjpeg"/></para></listitem></itemizedlist>
|
---|
[6a0d7b2] | 75 | </listitem></itemizedlist>
|
---|
[52d29f7] | 76 |
|
---|
| 77 | </sect3>
|
---|
| 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2>
|
---|
| 82 | <title>Installation of <application>Perl</application> modules</title>
|
---|
| 83 |
|
---|
| 84 | <para>Install <application>Perl</application> modules by running the following
|
---|
| 85 | commands:</para>
|
---|
| 86 |
|
---|
| 87 | <screen><userinput><command>perl Makefile.PL &&
|
---|
| 88 | make &&
|
---|
[71398d29] | 89 | make test &&
|
---|
[52d29f7] | 90 | make install</command></userinput></screen>
|
---|
| 91 |
|
---|
[e6f8f78] | 92 | <para>The modules listed below require modifications to the instructions in
|
---|
| 93 | order to install successfully.</para>
|
---|
[52d29f7] | 94 |
|
---|
[e6f8f78] | 95 | <sect3>
|
---|
| 96 | <title>Gtk-Perl-&Gtk-Perl-version;:</title>
|
---|
[52d29f7] | 97 |
|
---|
| 98 | <screen><userinput><command>perl Makefile.PL --without-guessing &&
|
---|
| 99 | make &&
|
---|
[71398d29] | 100 | make test &&
|
---|
[e6f8f78] | 101 | make install</command></userinput></screen></sect3>
|
---|
| 102 |
|
---|
| 103 | <sect3>
|
---|
| 104 | <title>SGMLSpm-&SGMLSpm-version;</title>
|
---|
| 105 |
|
---|
[0a830a12] | 106 | <para>If your system's <application>Perl</application> version is different
|
---|
| 107 | than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
|
---|
| 108 | command below to reflect the version you have installed.</para>
|
---|
[e6f8f78] | 109 |
|
---|
| 110 | <screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
|
---|
[0a830a12] | 111 | -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
|
---|
[e6f8f78] | 112 | -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
|
---|
| 113 | Makefile &&
|
---|
| 114 | make install &&
|
---|
| 115 | install -d -m 755 /usr/share/doc/perl5 &&
|
---|
| 116 | make install_html &&
|
---|
| 117 | rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &&
|
---|
| 118 | install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
|
---|
| 119 | </sect3>
|
---|
[52d29f7] | 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | <sect2><title>(Alternate) Auto installation of <application>Perl</application>
|
---|
| 124 | modules.</title>
|
---|
| 125 |
|
---|
| 126 | <para>There is an alternate way of installing the modules using
|
---|
| 127 | <application>Perl</application>'s built-in <command>install</command> command.
|
---|
[cebbbb5] | 128 | The command automatically downloads the source from the <acronym>CPAN</acronym>
|
---|
| 129 | archive, extracts it, runs the commands mentioned above, and removes
|
---|
[52d29f7] | 130 | the build tree.</para>
|
---|
| 131 |
|
---|
| 132 | <para>Start the perl shell with the commands:</para>
|
---|
| 133 |
|
---|
| 134 | <screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
|
---|
| 135 | <para>Each module may now be installed from this shell with the command:</para>
|
---|
| 136 | <screen><userinput><command>install <moduleName></command></userinput></screen>
|
---|
| 137 |
|
---|
| 138 | <para>For additional commands and help, type <command>help</command>.</para>
|
---|
| 139 |
|
---|
| 140 | </sect2>
|
---|
[3d60760] | 141 |
|
---|
| 142 | </sect1>
|
---|
| 143 |
|
---|