1Alien::Libxml2(3) User Contributed Perl Documentation Alien::Libxml2(3)
2
3
4
6 Alien::Libxml2 - Install the C libxml2 library on your system
7
9 version 0.17
10
12 In your Makefile.PL:
13
14 use ExtUtils::MakeMaker;
15 use Alien::Base::Wrapper ();
16
17 WriteMakefile(
18 Alien::Base::Wrapper->new('Alien::Libxml2')->mm_args2(
19 # MakeMaker args
20 NAME => 'My::XS',
21 ...
22 ),
23 );
24
25 In your Build.PL:
26
27 use Module::Build;
28 use Alien::Base::Wrapper qw( Alien::Libxml2 !export );
29
30 my $builder = Module::Build->new(
31 ...
32 configure_requires => {
33 'Alien::Libxml2' => '0',
34 ...
35 },
36 Alien::Base::Wrapper->mb_args,
37 ...
38 );
39
40 $build->create_build_script;
41
42 In your FFI::Platypus script or module:
43
44 use FFI::Platypus;
45 use Alien::Libxml2;
46
47 my $ffi = FFI::Platypus->new(
48 lib => [ Alien::Libxml2->dynamic_libs ],
49 );
50
52 This module provides "libxml2" for other modules to use.
53
55 There was an older existing Alien::LibXML, but it uses the older
56 Alien::Build::ModuleBuild and the author prefers this version which is
57 based on the more robust alienfile system.
58
59 "libxml2" has some optional prereqs, including "zlib" and "iconv". For
60 a "share" install you will want to make sure that these are installed
61 prior to installing Alien::Libxml2 if you want to make use of features
62 relying on them.
63
64 For a system install, you want to make sure the development packages
65 for "libxml2", "zlib" and "iconv" are installed if "libxml2" has been
66 configured to use them, otherwise XML::LibXML will not install as
67 expected. If the tests for this module fail with a missing "iconv.h"
68 or "zlib.h", then this is likely the reason.
69
71 Alien::LibXML
72 Older Alien for the same library.
73
74 XML::LibXML
75 Perl interface to "libxml2", which uses this Alien
76
78 Author: Graham Ollis <plicease@cpan.org>
79
80 Contributors:
81
82 Shlomi Fish (shlomif)
83
85 This software is copyright (c) 2013 by Graham Ollis.
86
87 This is free software; you can redistribute it and/or modify it under
88 the same terms as the Perl 5 programming language system itself.
89
90
91
92perl v5.34.0 2021-07-22 Alien::Libxml2(3)