[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 |
|
---|
[30e1539] | 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
|
---|
[52d29f7] | 24 | dependencies.</para>
|
---|
| 25 |
|
---|
[6a0d7b2] | 26 | <sect3><title><application>Perl</application> Module Packages</title>
|
---|
[52d29f7] | 27 | <itemizedlist spacing='compact'>
|
---|
[30e1539] | 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>
|
---|
[30e1539] | 30 | </para>
|
---|
[52d29f7] | 31 |
|
---|
[30e1539] | 32 | <itemizedlist spacing='compact'>
|
---|
| 33 | <listitem><para><ulink
|
---|
[71398d29] | 34 | url="http://www.cpan.org/authors/id/K/KG/KGB/ExtUtils-F77-&ExtUtils-F77-version;.tar.gz">ExtUtils-F77-&ExtUtils-F77-version;</ulink>
|
---|
| 35 | </para></listitem>
|
---|
[cebbbb5] | 36 |
|
---|
[30e1539] | 37 | <listitem><para><ulink
|
---|
[71398d29] | 38 | url="http://www.cpan.org/authors/id/I/IN/INGY/Inline-&Inline-version;.tar.gz">Inline-&Inline-version;</ulink>
|
---|
[30e1539] | 39 | </para>
|
---|
[cebbbb5] | 40 |
|
---|
[30e1539] | 41 | <itemizedlist spacing='compact'>
|
---|
| 42 | <listitem><para><ulink
|
---|
[71398d29] | 43 | url="http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-&Parse-RecDescent-version;.tar.gz">Parse-RecDescent-&Parse-RecDescent-version;</ulink>
|
---|
[30e1539] | 44 | </para></listitem>
|
---|
| 45 | </itemizedlist></listitem>
|
---|
[cebbbb5] | 46 |
|
---|
[30e1539] | 47 | <listitem><para><ulink
|
---|
[71398d29] | 48 | 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>
|
---|
[30e1539] | 49 | </para></listitem>
|
---|
| 50 | </itemizedlist></listitem>
|
---|
[52d29f7] | 51 |
|
---|
[30e1539] | 52 | <listitem><para><ulink
|
---|
[71398d29] | 53 | url="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">Gtk-Perl-&Gtk-Perl-version;</ulink>
|
---|
[30e1539] | 54 | </para>
|
---|
[52d29f7] | 55 |
|
---|
[30e1539] | 56 | <itemizedlist spacing='compact'>
|
---|
| 57 | <listitem><para><ulink
|
---|
[71398d29] | 58 | url="http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-&XML-Writer-version;.tar.gz">XML-Writer-&XML-Writer-version;</ulink>
|
---|
| 59 | </para></listitem>
|
---|
[52d29f7] | 60 |
|
---|
[30e1539] | 61 | <listitem><para><ulink
|
---|
| 62 | url="http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">XML-Parser-&XML-Parser-version;</ulink>
|
---|
| 63 | </para>
|
---|
[cf3ab518] | 64 |
|
---|
[30e1539] | 65 | <itemizedlist spacing='compact'>
|
---|
| 66 | <listitem><para><xref linkend="expat"/></para></listitem>
|
---|
| 67 | </itemizedlist></listitem>
|
---|
[71398d29] | 68 |
|
---|
| 69 | <listitem><para><xref linkend="GTK"/></para>
|
---|
[30e1539] | 70 | </listitem>
|
---|
| 71 | </itemizedlist></listitem>
|
---|
[52d29f7] | 72 |
|
---|
[30e1539] | 73 | <listitem><para><ulink
|
---|
[71398d29] | 74 | url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">SGMLSpm-&SGMLSpm-version;</ulink>
|
---|
| 75 | </para></listitem>
|
---|
[6a0d7b2] | 76 |
|
---|
[30e1539] | 77 | <listitem><para><ulink
|
---|
[71398d29] | 78 | url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">Tk-&Perl-Tk-version;</ulink>
|
---|
[30e1539] | 79 | </para>
|
---|
[6a0d7b2] | 80 |
|
---|
[30e1539] | 81 | <itemizedlist spacing='compact'>
|
---|
[71398d29] | 82 | <listitem><para><xref linkend="tk"/> and
|
---|
[30e1539] | 83 | <xref linkend="libjpeg"/></para></listitem>
|
---|
| 84 | </itemizedlist></listitem>
|
---|
| 85 |
|
---|
| 86 | <listitem><para><ulink
|
---|
| 87 | url="http://www.cpan.org/authors/id/C/CR/CREIN/Net-DNS-&Net-DNS-version;.tar.gz">Net-DNS-&Net-DNS-version;</ulink>
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <itemizedlist spacing='compact'>
|
---|
| 91 | <listitem><para><ulink
|
---|
| 92 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-MD5-&Digest-MD5-version;.tar.gz">Digest-MD5-&Digest-MD5-version;</ulink>
|
---|
| 93 | </para></listitem>
|
---|
| 94 |
|
---|
| 95 | <listitem><para><ulink
|
---|
| 96 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-HMAC-&Digest-HMAC-version;.tar.gz">Digest-HMAC-&Digest-HMAC-version;</ulink>
|
---|
| 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <itemizedlist spacing='compact'>
|
---|
| 100 | <listitem><para><ulink
|
---|
| 101 | url="http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-&Digest-SHA1-version;.tar.gz">Digest-SHA1-&Digest-SHA1-version;</ulink>
|
---|
| 102 | </para></listitem></itemizedlist>
|
---|
| 103 | </listitem></itemizedlist>
|
---|
[6a0d7b2] | 104 | </listitem></itemizedlist>
|
---|
[52d29f7] | 105 |
|
---|
| 106 | </sect3>
|
---|
| 107 |
|
---|
| 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2>
|
---|
| 111 | <title>Installation of <application>Perl</application> modules</title>
|
---|
| 112 |
|
---|
| 113 | <para>Install <application>Perl</application> modules by running the following
|
---|
| 114 | commands:</para>
|
---|
| 115 |
|
---|
| 116 | <screen><userinput><command>perl Makefile.PL &&
|
---|
| 117 | make &&
|
---|
[71398d29] | 118 | make test &&
|
---|
[52d29f7] | 119 | make install</command></userinput></screen>
|
---|
| 120 |
|
---|
[e6f8f78] | 121 | <para>The modules listed below require modifications to the instructions in
|
---|
| 122 | order to install successfully.</para>
|
---|
[52d29f7] | 123 |
|
---|
[e6f8f78] | 124 | <sect3>
|
---|
| 125 | <title>Gtk-Perl-&Gtk-Perl-version;:</title>
|
---|
[52d29f7] | 126 |
|
---|
| 127 | <screen><userinput><command>perl Makefile.PL --without-guessing &&
|
---|
| 128 | make &&
|
---|
[71398d29] | 129 | make test &&
|
---|
[e6f8f78] | 130 | make install</command></userinput></screen></sect3>
|
---|
| 131 |
|
---|
| 132 | <sect3>
|
---|
| 133 | <title>SGMLSpm-&SGMLSpm-version;</title>
|
---|
| 134 |
|
---|
[0a830a12] | 135 | <para>If your system's <application>Perl</application> version is different
|
---|
| 136 | than &LFS-Perl-version;, you'll need to modify the <command>sed</command>
|
---|
| 137 | command below to reflect the version you have installed.</para>
|
---|
[e6f8f78] | 138 |
|
---|
| 139 | <screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
|
---|
[0a830a12] | 140 | -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/&LFS-Perl-version;@" \
|
---|
[e6f8f78] | 141 | -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
|
---|
| 142 | Makefile &&
|
---|
| 143 | make install &&
|
---|
| 144 | install -d -m 755 /usr/share/doc/perl5 &&
|
---|
| 145 | make install_html &&
|
---|
| 146 | rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &&
|
---|
| 147 | install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
|
---|
| 148 | </sect3>
|
---|
[52d29f7] | 149 |
|
---|
| 150 | </sect2>
|
---|
| 151 |
|
---|
| 152 | <sect2><title>(Alternate) Auto installation of <application>Perl</application>
|
---|
| 153 | modules.</title>
|
---|
| 154 |
|
---|
| 155 | <para>There is an alternate way of installing the modules using
|
---|
| 156 | <application>Perl</application>'s built-in <command>install</command> command.
|
---|
[cebbbb5] | 157 | The command automatically downloads the source from the <acronym>CPAN</acronym>
|
---|
| 158 | archive, extracts it, runs the commands mentioned above, and removes
|
---|
[52d29f7] | 159 | the build tree.</para>
|
---|
| 160 |
|
---|
| 161 | <para>Start the perl shell with the commands:</para>
|
---|
| 162 |
|
---|
| 163 | <screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
|
---|
| 164 | <para>Each module may now be installed from this shell with the command:</para>
|
---|
| 165 | <screen><userinput><command>install <moduleName></command></userinput></screen>
|
---|
| 166 |
|
---|
| 167 | <para>For additional commands and help, type <command>help</command>.</para>
|
---|
| 168 |
|
---|
| 169 | </sect2>
|
---|
[3d60760] | 170 |
|
---|
| 171 | </sect1>
|
---|
| 172 |
|
---|