<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
     License, v. 2.0. If a copy of the MPL was not distributed with this
     file, You can obtain one at http://mozilla.org/MPL/2.0/.

     This Source Code Form is "Incompatible With Secondary Licenses", as
     defined by the Mozilla Public License, v. 2.0.
-->
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
                      "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
    <!ENTITY % myents SYSTEM "bugzilla.ent">
    %myents;
]>

<appendix id="install-perlmodules-manual">
  <title>Manual Installation of Perl Modules</title>
  
  <section id="modules-manual-instructions">
    <title>Instructions</title>
    <para>
      If you need to install Perl modules manually, here's how it's done.
      Download the module using the link given in the next section, and then
      apply this magic incantation, as root:
    </para>

    <para>  
      <screen><prompt>bash#</prompt> tar -xzvf &lt;module&gt;.tar.gz
<prompt>bash#</prompt> cd &lt;module&gt;
<prompt>bash#</prompt> perl Makefile.PL
<prompt>bash#</prompt> make
<prompt>bash#</prompt> make test
<prompt>bash#</prompt> make install</screen>
    </para>
    <note>
      <para>
        In order to compile source code under Windows you will need to obtain
        a 'make' utility.  The <command>nmake</command> utility provided with
        Microsoft Visual C++ may be used.  As an alternative, there is a
        utility called <command>dmake</command> available from CPAN which is
        written entirely in Perl.
      </para>
      <para>
        As described in <xref linkend="modules-manual-download" />, however, most
        packages already exist and are available from ActiveState or theory58S.
        We highly recommend that you install them using the ppm GUI available with
        ActiveState and to add the theory58S repository to your list of repositories.
      </para>
    </note>
  </section>
    
  <section id="modules-manual-download">
    <title>Download Locations</title>
    
    <note>
      <para>
        Running Bugzilla on Windows requires the use of ActiveState
        Perl &min-perl-ver; or higher. Many modules already exist in the core
        distribution of ActiveState Perl. Additional modules can be downloaded
        from <ulink url="http://cpan.uwinnipeg.ca/PPMPackages/10xx/" />
        if you use Perl 5.10.1.
      </para>
    </note>

    <para>
      CGI:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/CGI.pm/"/>
        Documentation: <ulink url="http://perldoc.perl.org/CGI.html"/>
      </literallayout>
    </para>

    <para>
      Data-Dumper:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/Data-Dumper/"/>
        Documentation: <ulink url="http://search.cpan.org/dist/Data-Dumper/Dumper.pm"/>
      </literallayout>
    </para>
    
    <para>
      Date::Format (part of TimeDate):
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/TimeDate/"/>
        Documentation: <ulink url="http://search.cpan.org/dist/TimeDate/lib/Date/Format.pm"/>
      </literallayout>
    </para>

    <para>
      DBI:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/DBI/"/>
        Documentation: <ulink url="http://dbi.perl.org/docs/"/>
      </literallayout>
    </para>

    <para>
      DBD::mysql:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/DBD-mysql/"/>
        Documentation: <ulink url="http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql.pm"/>
      </literallayout>
    </para>

    <para>
      DBD::Pg:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/DBD-Pg/"/>
        Documentation: <ulink url="http://search.cpan.org/dist/DBD-Pg/Pg.pm"/>
      </literallayout>
    </para>

    <para>
      Template-Toolkit:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/Template-Toolkit/"/>
        Documentation: <ulink url="http://www.template-toolkit.org/docs.html"/>
      </literallayout>
    </para>

    <para>
      GD:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/GD/"/>
        Documentation: <ulink url="http://search.cpan.org/dist/GD/GD.pm"/>
      </literallayout>
    </para>

    <para>
      Template::Plugin::GD:
      <literallayout>
       CPAN Download Page: <ulink url="http://search.cpan.org/dist/Template-GD/" />
       Documentation: <ulink url="http://www.template-toolkit.org/docs/aqua/Modules/index.html" />
      </literallayout>
    </para>

    <para>
      MIME::Parser (part of MIME-tools):
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/MIME-tools/"/>
        Documentation: <ulink url="http://search.cpan.org/dist/MIME-tools/lib/MIME/Parser.pm"/>
      </literallayout>
    </para>

  </section>

  <section id="modules-manual-optional">
    <title>Optional Modules</title>

    <para>
      Chart::Lines:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/Chart/"/>
        Documentation: <ulink url="http://search.cpan.org/dist/Chart/Chart.pod"/>
      </literallayout>
    </para>

     <para>
      GD::Graph:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/GDGraph/"/>
        Documentation: <ulink url="http://search.cpan.org/dist/GDGraph/Graph.pm"/>
      </literallayout>
    </para>

    <para>
      GD::Text::Align (part of GD::Text::Util):
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/GDTextUtil/"/>
        Documentation: <ulink url="http://search.cpan.org/dist/GDTextUtil/Text/Align.pm"/>
      </literallayout>
    </para>

   <para>
      XML::Twig:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/dist/XML-Twig/"/>
        Documentation: <ulink url="http://standards.ieee.org/resources/spasystem/twig/twig_stable.html"/>
      </literallayout>
    </para>

    <para>
      PatchReader:
      <literallayout>
        CPAN Download Page: <ulink url="http://search.cpan.org/author/JKEISER/PatchReader/"/>
        Documentation: <ulink url="http://www.johnkeiser.com/mozilla/Patch_Viewer.html"/>
      </literallayout>
    </para>
   </section>
</appendix>
