diff options
Diffstat (limited to 'chapter05/perl-inst.xml')
-rw-r--r-- | chapter05/perl-inst.xml | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/chapter05/perl-inst.xml b/chapter05/perl-inst.xml index c8bc5244e..99292f86c 100644 --- a/chapter05/perl-inst.xml +++ b/chapter05/perl-inst.xml @@ -2,14 +2,26 @@ <sect2> <title>Installation of Perl</title> -<para><screen><userinput>patch -Np1 -i ../perl-&perl-version;-libc.patch -chmod u+w hints/linux.sh -echo 'static_ext="IO re Fcntl"' >> hints/linux.sh -./configure.gnu --prefix=/stage1 -make perl -make utilities -cp perl /stage1/bin/perl -cp pod/pod2man /stage1/bin +<para>First adapt some hard-wired paths to the C library:</para> + +<para><screen><userinput>patch -Np1 -i ../perl-&perl-version;-libc.patch</userinput></screen></para> + +<para>And make sure some static extensions get built:</para> + +<para><screen><userinput>chmod u+w hints/linux.sh +echo 'static_ext="IO re Fcntl"' >> hints/linux.sh</userinput></screen></para> + +<para>Now prepare Perl for compilation:</para> + +<para><screen><userinput>./configure.gnu --prefix=/stage1</userinput></screen></para> + +<para>Compile only the required tools:</para> + +<para><screen><userinput>make perl utilities</userinput></screen></para> + +<para>Then copy these tools and their libraries:</para> + +<para><screen><userinput>cp perl pod/pod2man /stage1/bin mkdir -p /stage1/lib/perl5/5.8.0 cp -R lib/* /stage1/lib/perl5/5.8.0</userinput></screen></para> |