in reply to Alien::Libxml2 cannot find the latest libxml2

You could try to build a shared version, as opposed to it picking up the system version. This has the advantage that it is isolated from the system version so will not be affected by system updates, but with the caveat that it will not benefit from updates.

Shared builds can be forced using an environment variable, set before you build the makefile. This is documented at https://metacpan.org/pod/Alien::Build#ALIEN_INSTALL_TYPE.

Note that there are failures listed for darwin (mac) in cpan testers: http://matrix.cpantesters.org/?dist=Alien-Libxml2+0.09. I have not looked closely at the reasons, but they might be relevant to your case.

  • Comment on Re: Alien::Libxml2 cannot find the latest libxml2

Replies are listed 'Best First'.
Re^2: Alien::Libxml2 cannot find the latest libxml2
by PhilipS (Novice) on Jul 04, 2019 at 19:10 UTC

    Thanks. I tried that, but I couldn't get that to work either.

    I'll try contacting the module's author.

      I contacted the module's author, https://github.com/Perl5-Alien/Alien-Libxml2/issues/11. He posted a version that works for me: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-0.10_01.tar.gz (That version does not seem to be available via CPAN yet.)
        I can find it. You need to click on the dropdown at the module version, though, as the DEV releases aren't shown by default.

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]