note
tobyink
<blockquote><p><i>"the version of libxml2.so it (Perl itself?) was compiled against [...] I thought briefly that I should reinstall Perl"</i></p></blockquote>
<p>Perl itself does not link to libxml2, so there's no reason to reinstall Perl.</p>
<p>The XML::LibXML Makefile.PL accepts some options for providing the paths to the libxml2 library. You could try installing like e.g.:</p>
<c>
Makefile.PL LIBS=/usr/local/lib INC=/usr/local/include
make
make test
sudo make install
</c>
<div class="pmsig"><div class="pmsig-757127">
<small><small><tt>package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name</tt></small></small>
</div></div>
1049301
1049301