Alien::PCRE2 - Find or download/build/install libpcre2 in PCRE2, the new Perl Compatible Regular Expression engine
From a Perl script
use Alien::PCRE2; use Env qw(@PATH); unshift @PATH, Alien::PCRE2->bin_dir(); system 'pcre2-config'; system 'pcre2grep';
This package can be used by other CPAN modules that require PCRE2 or libpcre2.
PLEASE NOTE: This distribution will automatically call make install as part of the make test step!
make install
make test
This is necessary to avoid the following error when testing the pcre2grep command:
pcre2grep
error while loading shared libraries: libpcre2-8.so.0: cannot open shared object file: No such file or directory.
error while loading shared libraries: libpcre2-8.so.0: cannot open shared object file: No such file or directory
William N. Braswell, Jr. <wbraswell@cpan.org>
This software is copyright (c) 2017 by William N. Braswell, Jr.;
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Alien::PCRE2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::PCRE2
CPAN shell
perl -MCPAN -e shell install Alien::PCRE2
For more information on module installation, please visit the detailed CPAN module installation guide.