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 | <!-- <!ENTITY Gtk-Perl-version "0.7009">
|
---|
8 | <!ENTITY PDL-version "2.4.0">
|
---|
9 | <!ENTITY XML-Parser-version "2.34">
|
---|
10 | <!ENTITY XML-Writer-version "0.4.1">
|
---|
11 | <!ENTITY Astro-FITS-Header-version "2.8.1">
|
---|
12 | <!ENTITY Parse-RecDescent-version "1.94"> -->
|
---|
13 |
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="perl-modules" xreflabel="Perl modules">
|
---|
17 | <?dbhtml filename="perl-modules.html" ?>
|
---|
18 | <title>Perl modules</title>
|
---|
19 |
|
---|
20 | <sect2>
|
---|
21 | <title>Introduction to <application>Perl</application> modules</title>
|
---|
22 |
|
---|
23 | <para>The <application>Perl</application> module packages add useful objects
|
---|
24 | to the <application>Perl</application> language. Modules utilized by packages
|
---|
25 | throughout <acronym>BLFS</acronym> are listed here, along with their
|
---|
26 | dependencies.</para>
|
---|
27 |
|
---|
28 | <sect3><title><application>Perl</application> Module Packages</title>
|
---|
29 | <itemizedlist spacing='compact'>
|
---|
30 | <listitem><para><ulink
|
---|
31 | url="http://search.cpan.org/CPAN/authors/id/C/CS/CSOE/PDL-&PDL-version;.tar.gz">PDL-&PDL-version;</ulink></para><itemizedlist spacing='compact'>
|
---|
32 |
|
---|
33 | <listitem><para><ulink
|
---|
34 | 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></para></listitem></itemizedlist></listitem>
|
---|
35 |
|
---|
36 | <listitem><para><ulink
|
---|
37 | url="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Gtk-Perl-&Gtk-Perl-version;.tar.gz">Gtk-Perl-&Gtk-Perl-version;</ulink></para><itemizedlist spacing='compact'>
|
---|
38 |
|
---|
39 | <listitem><para><ulink
|
---|
40 | url="http://search.cpan.org/CPAN/authors/id/E/ED/EDAVIS/XML-Writer-&XML-Writer-version;.tar.gz">XML-Writer-&XML-Writer-version;</ulink></para></listitem>
|
---|
41 |
|
---|
42 | <listitem><para><ulink
|
---|
43 | url="http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-&XML-Parser-version;.tar.gz">XML-Parser-&XML-Parser-version;</ulink>
|
---|
44 | </para></listitem></itemizedlist></listitem>
|
---|
45 |
|
---|
46 | <listitem><para><ulink
|
---|
47 | url="http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-&Parse-RecDescent-version;.tar.gz">Parse-RecDescent-&Parse-RecDescent-version;</ulink></para></listitem>
|
---|
48 |
|
---|
49 | <listitem><para><ulink
|
---|
50 | url="http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-&SGMLSpm-version;.tar.gz">SGMLSpm-&SGMLSpm-version;</ulink></para></listitem>
|
---|
51 |
|
---|
52 | <listitem><para><ulink
|
---|
53 | url="http://www.cpan.org/authors/id/N/NI/NI-S/Tk-&Perl-Tk-version;.tar.gz">Tk-&Perl-Tk-version;</ulink></para><itemizedlist spacing='compact'>
|
---|
54 |
|
---|
55 | <listitem><para><xref linkend="tk"/> and <xref linkend="libjpeg"/></para></listitem></itemizedlist>
|
---|
56 | </listitem></itemizedlist>
|
---|
57 |
|
---|
58 | </sect3>
|
---|
59 |
|
---|
60 | </sect2>
|
---|
61 |
|
---|
62 | <sect2>
|
---|
63 | <title>Installation of <application>Perl</application> modules</title>
|
---|
64 |
|
---|
65 | <para>Install <application>Perl</application> modules by running the following
|
---|
66 | commands:</para>
|
---|
67 |
|
---|
68 | <screen><userinput><command>perl Makefile.PL &&
|
---|
69 | make &&
|
---|
70 | make install</command></userinput></screen>
|
---|
71 |
|
---|
72 | <para>The modules listed below require modifications to the instructions in
|
---|
73 | order to install successfully.</para>
|
---|
74 |
|
---|
75 | <sect3>
|
---|
76 | <title>Gtk-Perl-&Gtk-Perl-version;:</title>
|
---|
77 |
|
---|
78 | <screen><userinput><command>perl Makefile.PL --without-guessing &&
|
---|
79 | make &&
|
---|
80 | make install</command></userinput></screen></sect3>
|
---|
81 |
|
---|
82 | <sect3>
|
---|
83 | <title>SGMLSpm-&SGMLSpm-version;</title>
|
---|
84 |
|
---|
85 | <para>If your system's <application>Perl</application> is older than 5.8.4,
|
---|
86 | you'll need to modify the <command>sed</command> command below to reflect
|
---|
87 | the version you have installed.</para>
|
---|
88 |
|
---|
89 | <screen><userinput><command>sed -i -e "s@/usr/local/bin@/usr/bin@" \
|
---|
90 | -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/5.8.4@" \
|
---|
91 | -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
|
---|
92 | Makefile &&
|
---|
93 | make install &&
|
---|
94 | install -d -m 755 /usr/share/doc/perl5 &&
|
---|
95 | make install_html &&
|
---|
96 | rm -f /usr/share/doc/perl5/SGMLSpm/sample.pl &&
|
---|
97 | install -m 644 DOC/sample.pl /usr/share/doc/perl5/SGMLSpm</command></userinput></screen>
|
---|
98 | </sect3>
|
---|
99 |
|
---|
100 | </sect2>
|
---|
101 |
|
---|
102 | <sect2><title>(Alternate) Auto installation of <application>Perl</application>
|
---|
103 | modules.</title>
|
---|
104 |
|
---|
105 | <para>There is an alternate way of installing the modules using
|
---|
106 | <application>Perl</application>'s built-in <command>install</command> command.
|
---|
107 | The command automatically downloads the source from the <acronym>CPAN</acronym>archive, extracts it, runs the commands mentioned above, and removes
|
---|
108 | the build tree.</para>
|
---|
109 |
|
---|
110 | <para>Start the perl shell with the commands:</para>
|
---|
111 |
|
---|
112 | <screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
|
---|
113 | <para>Each module may now be installed from this shell with the command:</para>
|
---|
114 | <screen><userinput><command>install <moduleName></command></userinput></screen>
|
---|
115 |
|
---|
116 | <para>For additional commands and help, type <command>help</command>.</para>
|
---|
117 |
|
---|
118 | </sect2>
|
---|
119 |
|
---|
120 | </sect1>
|
---|
121 |
|
---|