[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 | ]>
|
---|
| 7 |
|
---|
[24a37fa7] | 8 | <sect1 id="perl-modules" xreflabel="Perl modules">
|
---|
[71398d29] | 9 | <sect1info>
|
---|
[5cd0959d] | 10 | <othername>$LastChangedBy$</othername>
|
---|
| 11 | <date>$Date$</date>
|
---|
[71398d29] | 12 | </sect1info>
|
---|
[19aa75a] | 13 | <?dbhtml filename="perl-modules.html" ?>
|
---|
[bd23186f] | 14 | <title><application>Perl</application> modules</title>
|
---|
[3d60760] | 15 |
|
---|
[52d29f7] | 16 | <sect2>
|
---|
| 17 | <title>Introduction to <application>Perl</application> modules</title>
|
---|
| 18 |
|
---|
[30e1539] | 19 | <para>The <application>Perl</application> module packages add useful objects
|
---|
| 20 | to the <application>Perl</application> language. Modules utilized by packages
|
---|
| 21 | throughout <acronym>BLFS</acronym> are listed here, along with their
|
---|
[bd23186f] | 22 | dependencies. Most references to <application>Perl</application> modules are
|
---|
| 23 | in the form of Module, Module::SubName or Module::Sub::Name, however
|
---|
| 24 | occasionally you'll also see Module, Module-SubName or Module-Sub-Name. Most
|
---|
| 25 | references on this page are in the latter form, as these are the official
|
---|
| 26 | package names.</para>
|
---|
| 27 |
|
---|
| 28 | <sect3><title>The Module::Info module</title>
|
---|
| 29 | <para>One module in particular is shown first, as this module's usefulness
|
---|
| 30 | warrants installation, even though it won't be required by many other modules.
|
---|
| 31 | The Module::Info module can tell you if a particular module is included in,
|
---|
| 32 | or has been installed into your <application>Perl</application> installation.
|
---|
| 33 | Additionally, the module can tell you what versions are installed and what
|
---|
| 34 | dependencies are required for them. You can even use Module::Info to gather
|
---|
| 35 | dependencies of uninstalled modules.</para>
|
---|
[cebbbb5] | 36 |
|
---|
[30e1539] | 37 | <itemizedlist spacing='compact'>
|
---|
| 38 | <listitem><para><ulink
|
---|
[bd23186f] | 39 | url="http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-&Module-Info-version;.tar.gz">Module-Info-&Module-Info-version;</ulink>
|
---|
[30e1539] | 40 | </para></listitem>
|
---|
[bd23186f] | 41 | </itemizedlist>
|
---|
| 42 | </sect3>
|
---|
[cebbbb5] | 43 |
|
---|
[bd23186f] | 44 | <sect3><title><application>Perl</application> Module Packages</title>
|
---|
[52d29f7] | 45 |
|
---|
[bd23186f] | 46 | <itemizedlist><listitem><para><ulink
|
---|
| 47 | url="http://www.cpan.org/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">
|
---|
| 48 | Gtk-Perl-&Gtk-Perl-version;</ulink></para>
|
---|
[52d29f7] | 49 |
|
---|
[bd23186f] | 50 | <itemizedlist spacing='compact'><listitem><para><ulink
|
---|
| 51 | url="http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-&XML-Writer-version;.tar.gz">
|
---|
| 52 | XML-Writer-&XML-Writer-version;</ulink></para>
|
---|
| 53 | </listitem>
|
---|
[52d29f7] | 54 |
|
---|
[30e1539] | 55 | <listitem><para><ulink
|
---|
[bd23186f] | 56 | url="http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">
|
---|
| 57 | XML-Parser-&XML-Parser-version;</ulink></para>
|
---|
[cf3ab518] | 58 |
|
---|
[bd23186f] | 59 | <itemizedlist spacing='compact'><listitem>
|
---|
| 60 | <para><xref linkend="expat"/></para>
|
---|
| 61 | </listitem></itemizedlist>
|
---|
| 62 | </listitem>
|
---|
[71398d29] | 63 |
|
---|
[bd23186f] | 64 | <listitem>
|
---|
| 65 | <para><xref linkend="GTK"/></para>
|
---|
| 66 | </listitem></itemizedlist>
|
---|
[30e1539] | 67 | </listitem>
|
---|
[52d29f7] | 68 |
|
---|
[30e1539] | 69 | <listitem><para><ulink
|
---|
[bd23186f] | 70 | url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">
|
---|
| 71 | SGMLSpm-&SGMLSpm-version;</ulink></para>
|
---|
| 72 | </listitem>
|
---|
[6a0d7b2] | 73 |
|
---|
[30e1539] | 74 | <listitem><para><ulink
|
---|
[bd23186f] | 75 | url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">
|
---|
| 76 | Tk-&Perl-Tk-version;</ulink></para>
|
---|
[6a0d7b2] | 77 |
|
---|
[bd23186f] | 78 | <itemizedlist spacing='compact'><listitem>
|
---|
| 79 | <para><xref linkend="tk"/> and <xref linkend="libjpeg"/></para>
|
---|
| 80 | </listitem></itemizedlist>
|
---|
| 81 | </listitem>
|
---|
[30e1539] | 82 |
|
---|
| 83 | <listitem><para><ulink
|
---|
[bd23186f] | 84 | url="http://www.cpan.org/authors/id/C/CR/CREIN/Net-DNS-&Net-DNS-version;.tar.gz">
|
---|
| 85 | Net-DNS-&Net-DNS-version;</ulink></para>
|
---|
[30e1539] | 86 |
|
---|
[bd23186f] | 87 | <itemizedlist spacing='compact'><listitem><para><ulink
|
---|
| 88 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-HMAC-&Digest-HMAC-version;.tar.gz">
|
---|
| 89 | Digest-HMAC-&Digest-HMAC-version;</ulink></para>
|
---|
[30e1539] | 90 |
|
---|
[bd23186f] | 91 | <itemizedlist spacing='compact'><listitem><para><ulink
|
---|
| 92 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-&Digest-SHA1-version;.tar.gz">
|
---|
| 93 | Digest-SHA1-&Digest-SHA1-version;</ulink></para>
|
---|
| 94 | </listitem></itemizedlist>
|
---|
[30e1539] | 95 | </listitem></itemizedlist>
|
---|
[6a0d7b2] | 96 | </listitem></itemizedlist>
|
---|
[52d29f7] | 97 | </sect3>
|
---|
| 98 |
|
---|
| 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2>
|
---|
| 102 | <title>Installation of <application>Perl</application> modules</title>
|
---|
| 103 |
|
---|
| 104 | <para>Install <application>Perl</application> modules by running the following
|
---|
| 105 | commands:</para>
|
---|
| 106 |
|
---|
| 107 | <screen><userinput><command>perl Makefile.PL &&
|
---|
| 108 | make &&
|
---|
[71398d29] | 109 | make test &&
|
---|
[52d29f7] | 110 | make install</command></userinput></screen>
|
---|
| 111 |
|
---|
[e6f8f78] | 112 | <para>The modules listed below require modifications to the instructions in
|
---|
| 113 | order to install successfully.</para>
|
---|
[52d29f7] | 114 |
|
---|
[bd23186f] | 115 | <sect3><title>Gtk-Perl-&Gtk-Perl-version;:</title>
|
---|
[52d29f7] | 116 | <screen><userinput><command>perl Makefile.PL --without-guessing &&
|
---|
| 117 | make &&
|
---|
[71398d29] | 118 | make test &&
|
---|
[bd23186f] | 119 | make install</command></userinput></screen>
|
---|
| 120 | </sect3>
|
---|
[e6f8f78] | 121 |
|
---|
[bd23186f] | 122 | <sect3><title>SGMLSpm-&SGMLSpm-version;</title>
|
---|
[e6f8f78] | 123 |
|
---|
[0a830a12] | 124 | <para>If your system's <application>Perl</application> version is different
|
---|
| 125 | than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
|
---|
| 126 | command below to reflect the version you have installed.</para>
|
---|
[e6f8f78] | 127 |
|
---|
| 128 | <screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
|
---|
[0a830a12] | 129 | -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
|
---|
[e6f8f78] | 130 | -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
|
---|
| 131 | Makefile &&
|
---|
| 132 | make install &&
|
---|
| 133 | install -d -m 755 /usr/share/doc/perl5 &&
|
---|
| 134 | make install_html &&
|
---|
| 135 | rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &&
|
---|
| 136 | install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
|
---|
| 137 | </sect3>
|
---|
[52d29f7] | 138 |
|
---|
| 139 | </sect2>
|
---|
| 140 |
|
---|
| 141 | <sect2><title>(Alternate) Auto installation of <application>Perl</application>
|
---|
| 142 | modules.</title>
|
---|
[bd23186f] | 143 |
|
---|
| 144 | <para>There is an alternate way of installing the modules using
|
---|
| 145 | <application>Perl</application>'s built-in <command>install</command> command.
|
---|
[cebbbb5] | 146 | The command automatically downloads the source from the <acronym>CPAN</acronym>
|
---|
[bd23186f] | 147 | archive, extracts it, runs the commands mentioned above, and removes the build
|
---|
| 148 | tree. You may still need to install dependent library packages before running
|
---|
| 149 | the automated installation method.</para>
|
---|
[52d29f7] | 150 |
|
---|
[bd23186f] | 151 | <para>The first time you run this command, you'll be prompted to enter some
|
---|
| 152 | information regarding download locations and methods. This information is
|
---|
| 153 | retained in files located in <filename class='directory'>~/.cpan</filename>.
|
---|
| 154 | Start the perl shell with the following command:</para>
|
---|
[52d29f7] | 155 |
|
---|
| 156 | <screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
|
---|
| 157 | <para>Each module may now be installed from this shell with the command:</para>
|
---|
[bd23186f] | 158 | <screen><userinput><command>install <replaceable>[ModuleName]</replaceable></command></userinput></screen>
|
---|
[52d29f7] | 159 |
|
---|
| 160 | <para>For additional commands and help, type <command>help</command>.</para>
|
---|
| 161 |
|
---|
| 162 | </sect2>
|
---|
[3d60760] | 163 |
|
---|
| 164 | </sect1>
|
---|
| 165 |
|
---|