Perl::Build - perl builder
# perl-build command is FatPacker ready % curl https://raw.github.com/tokuhirom/Perl-Build/master/perl-build | perl - 5.16.2 /opt/perl-5.16/
% cpanm Perl::Build % perl-build 5.16.2 /opt/perl-5.16/
# install perl from CPAN Perl::Build->install_from_cpan( '5.16.2' => ( dst_path => '/path/to/perl-5.16.2/', configure_options => ['-des'], ) ); # install perl from tar ball Perl::Build->install_from_cpan( 'path/to/perl-5.16.2.tar.gz' => ( dst_path => '/path/to/perl-5.16.2/', configure_options => ['-des'], ) );
This is yet another perl builder module.
THIS IS A DEVELOPMENT RELEASE. API MAY CHANGE WITHOUT NOTICE.
Install $version perl from CPAN. This method fetches tar ball from CPAN, build, and install it.
You can pass following options in %args.
Destination directory to install perl.
Command line arguments for ./Configure.
(Default: ['-de'])
['-de']
Temporary directory to put tar ball.
Temporary directory to build binary.
Install perl from tar ball. This method extracts tar ball, build, and install.
Build and install Perl5 from extracted source directory.
Source code directory to build. That contains extracted Perl5 source code.
If you set this value as true, Perl::Build runs make test after building.
make test
(Default: 0)
Perl5 binary generated with -Dusedevel , is "perl-5.12.2" form. This method symlinks "perl-5.12.2" to "perl".
-Dusedevel
If you want to use patchperl plugins, please google "PERL5_PATCHPERL_PLUGIN".
perlbrew is a perl5 installation manager. But perl-build is a simple perl5 compilation and installation assistant tool. It makes perl5 installation easily. That's all. perl-build doesn't care user's environment.
So, perl-build is just a installer.
Most of the code was taken from App::perlbrew.
TYPESTER - suggests --patches option
--patches
Thanks
Tokuhiro Matsuno <tokuhirom@gmail.com>
This software takes most of the code from App::perlbrew.
Perl::Build uses same license with perlbrew.
To install Perl::Build, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Build
CPAN shell
perl -MCPAN -e shell install Perl::Build
For more information on module installation, please visit the detailed CPAN module installation guide.