# Perl-&perl-version; N32 Libraries

## Installation of Perl

    sed -i -e '/^BUILD_ZLIB/s/True/False/' \
           -e '/^INCLUDE/s,\./zlib-src,/usr/include,' \
           -e '/^LIB/s,\./zlib-src,/usr/lib32,' \
           cpan/Compress-Raw-Zlib/config.in

    sed -i "/libc/s@/lib@/lib32@" hints/linux.sh

We still need to tell perl to actually use lib32:

    echo 'installstyle="lib32/perl5"' >>hints/linux.sh

    ./configure.gnu --prefix=/usr \
       -Dvendorprefix=/usr \
       -Dman1dir=/usr/share/man/man1 \
       -Dman3dir=/usr/share/man/man3 \
       -Dpager="/bin/less -isR" \
       -Dlibpth="/usr/local/lib32 /lib32 /usr/lib32" \
       -Dcc="gcc ${BUILDN32}" \
       -Dusethreads -Duseshrplib

## The meaning of the new configure option:

`-Dlibpth="/usr/local/lib32 /lib32 /usr/lib32"`

- This tells Perl to link against the N32 libraries.

    mv -v /usr/bin/perl{,-n32}
    mv -v /usr/bin/perl&perl-version;{,-n32}

Details on this package are located in contents-perl