Linux From Scratch: Version 5.1-pre1
Prev | Chapter 5. Constructing a temporary system | Next

# Installing Perl-5.8.3

    Approximate build time:  0.8 SBU
    Required disk space:     74 MB

Official download location for Perl (5.8.3):
http://www.cpan.org/src/
And for the Perl Libc Patch:
http://www.linuxfromscratch.org/patches/lfs/cvs/perl-5.8.3-libc-1.patch

For its installation Perl depends on: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed.

##

## Installation of Perl

First adapt some hard-wired paths to the C library:

    patch -Np1 -i ../perl-5.8.3-libc-1.patch

Now prepare Perl for compilation (make sure to get the 'IO Fcntl' right, they are all letters):

    ./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl'

The meaning of the configure option:

- `-Dstatic_ext='IO Fcntl'`: This tells Perl to build the minimum set of static extensions needed for running the Coreutils test suite in the next chapter.

Compile only the required tools:

    make perl utilities

Then copy these tools and their libraries:

    cp perl pod/pod2man /tools/bin
    mkdir -p /tools/lib/perl5/5.8.3
    cp -R lib/* /tools/lib/perl5/5.8.3

##

The details on this package are found in the Section called Contents of Perl in Chapter 6.

Prev | Home | Next
Installing Util-linux-2.12 | Up | Stripping