Linux From Scratch: Version 5.0-pre1
Prev | Chapter 5. Preparing the LFS system | Next

# Installing Perl-5.8.0

    Estimated build time:           2.7 SBU
    Estimated required disk space:  52 MB

## Contents of Perl

(Last checked against version 5.6.1.)

The Perl package contains perl, the Practical Extraction and Report Language. Perl combines some of the best features of C, sed, awk and sh into one powerful language.

Perl installs the following:

### Program files and libraries

a2p, c2ph, dprofpp, find2perl, h2ph, h2xs, perl, perl5.6.1, perlbug, perlcc, perldoc, pl2pm, pod2html, pod2latex, pod2man, pod2text, pod2usage, podchecker, podselect, pstruct, s2p, splain,attrs.so, B.so, ByteLoader.so, DProf.so, Dumper.so, DynaLoader.a, Fcntl.so, Glob.so, Hostname.so, IO.so, libperl.a, Opcode.so, Peek.so, POSIX.so, re.so, SDBM_File.so, Socket.so, Syslog.so and SysV.so

##

## Perl Installation Dependencies

(Last checked against version 5.6.1.)

Bash: sh
Binutils: ar, as, ld, nm
Coreutils: basename, cat, chmod, comm, cp, date, echo, expr, hostname, ln,
ls, mkdir, mv, pwd, rm, sort, split, touch, tr, uname, wc,
whoami, uniq
Diffutils: cmp
Gawk: awk
GCC: cc, cc1, collect2, cpp0, gcc
Grep: egrep, grep
Make: make
Sed: sed

##

## Installation of Perl

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

    patch -Np1 -i ../perl-5.8.0-libc-3.patch

And make sure some static extensions get built:

    chmod u+w hints/linux.sh
    echo 'static_ext="IO re Fcntl"' >> hints/linux.sh

Now prepare Perl for compilation:

    ./configure.gnu --prefix=/tools

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.0
    cp -R lib/* /tools/lib/perl5/5.8.0

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