MTD 248-645A Manual de usuario Pagina 162

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 347
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 161
Linux From Scratch - Version 7.0
142
6.34. Perl-5.14.2
The Perl package contains the Practical Extraction and Report Language.
Approximate build time: 7.6 SBU
Required disk space: 235 MB
6.34.1. Installation of Perl
First create a basic /etc/hosts file to be referenced in one of Perl's configuration files as well as the optional
test suite:
echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
This version of Perl now builds the Compress::Raw::Zlib module. By default Perl will use an internal copy of the
Zlib source for the build. Issue the following command so that Perl will use the Zlib library installed on the system:
sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \
-e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \
-e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \
cpan/Compress-Raw-Zlib/config.in
To have full control over the way Perl is set up, you can remove the “-des” options from the following command
and hand-pick the way this package is built. Alternatively, use the command exactly as below to use the defaults
that Perl auto-detects:
sh Configure -des -Dprefix=/usr \
-Dvendorprefix=/usr \
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dpager="/usr/bin/less -isR" \
-Duseshrplib
The meaning of the configure options:
-Dvendorprefix=/usr
This ensures perl knows how to tell packages where they should install their perl modules.
-Dpager="/usr/bin/less -isR"
This corrects an error in the way that perldoc invokes the less program.
-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3
Since Groff is not installed yet, Configure thinks that we do not want man pages for Perl. Issuing these
parameters overrides this decision.
-Duseshrplib
Build a shared libperl needed by some perl modules.
Compile the package:
make
To test the results (approximately 2.5 SBU), issue:
make test
Vista de pagina 161
1 2 ... 157 158 159 160 161 162 163 164 165 166 167 ... 346 347

Comentarios a estos manuales

Sin comentarios