Alien::Libxml2 - Install the C libxml2 library on your system
In your Build.PL:
use Module::Build;
use Alien::Libxml2;
my $builder = Module::Build->new(
...
configure_requires => {
'Alien::Libxml2' => '0',
...
},
extra_compiler_flags => Alien::Libxml2->cflags,
extra_linker_flags => Alien::Libxml2->libs,
...
);
$build->create_build_script;
In your Makefile.PL:
use ExtUtils::MakeMaker;
use Config;
use Alien::Libxml2;
WriteMakefile(
...
CONFIGURE_REQUIRES => {
'Alien::Libxml2' => '0',
},
CCFLAGS => Alien::Libxml2->cflags . " $Config{ccflags}",
LIBS => [ Alien::Libxml2->libs ],
...
);
In your FFI::Platypus script or module:
use FFI::Platypus;
use Alien::Libxml2;
my $ffi = FFI::Platypus->new(
lib => [ Alien::Libxml2->dynamic_libs ],
);
User Contributed Perl Documentation Alien::Libxml2(3)
NAME
Alien::Libxml2 - Install the C libxml2 library on your system
VERSION
version 0.09
SYNOPSIS
In your Build.PL:
use Module::Build;
use Alien::Libxml2;
my $builder = Module::Build->new(
...
configure_requires => {
'Alien::Libxml2' => '0',
...
},
extra_compiler_flags => Alien::Libxml2->cflags,
extra_linker_flags => Alien::Libxml2->libs,
...
);
$build->create_build_script;
In your Makefile.PL:
use ExtUtils::MakeMaker;
use Config;
use Alien::Libxml2;
WriteMakefile(
...
CONFIGURE_REQUIRES => {
'Alien::Libxml2' => '0',
},
CCFLAGS => Alien::Libxml2->cflags . " $Config{ccflags}",
LIBS => [ Alien::Libxml2->libs ],
...
);
In your FFI::Platypus script or module:
use FFI::Platypus;
use Alien::Libxml2;
my $ffi = FFI::Platypus->new(
lib => [ Alien::Libxml2->dynamic_libs ],
);
DESCRIPTION
This module provides libxml2 for other modules to use. There was an
already existing Alien::LibXML, but it uses the older
Alien::Build::ModuleBuild and has not bee actively maintained for a
while.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+----------------------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+----------------------------------+
|Availability | library/perl-5/alien-libxml2-532 |
+---------------+----------------------------------+
|Stability | Volatile |
+---------------+----------------------------------+
SEE ALSO
Alien::LibXML
Unmaintained Alien for the same library.
AUTHOR
Graham Ollis <plicease@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from
http://www.cpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-0.09.tar.gz.
Further information about this software can be found on the open source
community website at http://search.cpan.org/dist/Alien-Libxml2/.
perl v5.32.0 2019-05-14 Alien::Libxml2(3)