Symbol not found: _xmlFree

That's the killer right there.
LibXML.xs calls xmlFree(), expecting that function to be resolved by your libxml2 library, but it's not.

Either your libxml2 library does not contain that expected functionality (which I think is unlikely), or your libxml2 library is simply not being located and loaded at runtime.
I don't know exactly what would be required to fix this on your system.
I think that, in building XML::LibXML-2.0206, there are some pre-tests run to check that libxml2 is available - so it's a bit odd that this problem is not detected at the beginning of the build.
Perhaps those pre-build checks don't extend to verifying that the libxml2 dynamic library is going to be found when needed at runtime ... I don't know.

I did try to force the install, and it installed, but the perl script I'm trying to run still came up with the same error, so I don't think it was successful

Well ... it installed successfully ... but the underlying problem of the failure to resolve _xmlFree at runtime has not been addressed.

Cheers,
Rob

In reply to Re: XML::LibXML fails install on macOS Big Sur by syphilis
in thread XML::LibXML fails install on macOS Big Sur by redsox43

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.