mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
bcd0ce7faa
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3116 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
57 lines
1.7 KiB
XML
57 lines
1.7 KiB
XML
<sect1 id="ch06-perl">
|
|
<title>Installing Perl-&perl-version;</title>
|
|
<?dbhtml filename="perl.html" dir="chapter06"?>
|
|
|
|
<screen>Estimated build time: &perl-time;
|
|
Estimated required disk space: &perl-compsize;</screen>
|
|
|
|
&aa-perl-shortdesc;
|
|
&aa-perl-dep;
|
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of Perl</title>
|
|
|
|
<para>Prepare Perl for compilation:</para>
|
|
|
|
<screen><userinput>./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"</userinput></screen>
|
|
|
|
<para>If you want more control over the way Perl sets itself up to be
|
|
built, you can run the interactive <userinput>Configure</userinput> script
|
|
instead and modify the way Perl is built. If you think you can live with the
|
|
(sensible) defaults Perl auto-detects, then just use the command listed
|
|
above.</para>
|
|
|
|
<para>The meaning of the configure option:</para>
|
|
|
|
<itemizedlist>
|
|
<listitem><para><userinput>-Dpager="/bin/less -isR"</userinput>: This corrects
|
|
an error in the perldoc code with the invocation of the less
|
|
program.</para></listitem>
|
|
</itemizedlist>
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
<para>This package has a test suite available which can perform a number of
|
|
checks to ensure it built correctly. Should you choose to run it, you first
|
|
have to create a basic <filename>/etc/hosts</filename> file, needed by a
|
|
couple of tests to resolve the name <emphasis>localhost</emphasis>:</para>
|
|
|
|
<screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen>
|
|
|
|
<para>Now run the tests, if you wish:</para>
|
|
|
|
<screen><userinput>make test</userinput></screen>
|
|
|
|
<para>And install the package:</para>
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|