glfs/general/prog/perl/perl-modules-inst.xml
Tushar Teredesai e1ed59315e misc fixes
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1933 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-03-26 06:44:49 +00:00

44 lines
1.5 KiB
XML

<sect2>
<title>Installation of <application>Perl</application> modules</title>
<para>Install <application>Perl</application> modules by running the following
commands:</para>
<screen><userinput><command>perl Makefile.PL &amp;&amp;
make &amp;&amp;
make install</command></userinput></screen>
<para>Below are modules that require some modifications to standard
instructions or certain parameters in order to install
successfully.</para>
<para>Gtk-Perl-&Gtk-Perl-version;:</para>
<screen><userinput><command>perl Makefile.PL --without-guessing &amp;&amp;
make &amp;&amp;
make install</command></userinput></screen>
</sect2>
<sect2><title>(Alternate) Auto installation of <application>Perl</application>
modules.</title>
<para>There is an alternate way of installing the modules using
<application>Perl</application>'s built-in <command>install</command> command.
The command automatically downloads the source from the <acronym>CPAN</acronym>
archive, extracts it, runs the commands mentioned above, and removes
the build tree. Though note that it is not very <acronym>LFS</acronym>-like
thing to do and as such is not supported.</para>
<para>Start the perl shell with the commands:</para>
<screen><userinput><command>perl -MCPAN -e shell</command></userinput></screen>
<para>Each module may now be installed from this shell with the command:</para>
<screen><userinput><command>install &lt;moduleName&gt;</command></userinput></screen>
<para>For additional commands and help, type <command>help</command>.</para>
</sect2>