Dear Monks,

It could take a long time* to figure this out but I want to enjoy Hauke D's lovely Badge::Simple module right now! I guess my computer has a few versions of libxml2 cause it says this when failing to install XML::LibXML:

Failed test 'LIBXML__VERSION == LIBXML_RUNTIME_VERSION'...Your setup of library paths is incorrect! 

Please help me setup the library paths correctly:

cpanm -v Badge::Simple
...
==> Found dependencies: XML::LibXML
...
t/01basic.t ........................................ Warning: program compiled against libxml 209 using older 208
Warning: XML::LibXML compiled against libxml2 20904, but runtime libxml2 is older 20800
t/01basic.t ........................................ 1/3 
#   Failed test 'LIBXML__VERSION == LIBXML_RUNTIME_VERSION'
#   at t/01basic.t line 18.
#          got: '20904'
#     expected: '20800'
# DO NOT REPORT THIS FAILURE: Your setup of library paths is incorrect!
# 
# 
# Compiled against libxml2 version: 20904
# Running libxml2 version:          20800
brew info libxml2
libxml2: stable 2.9.9 (bottled), HEAD [keg-only]
GNOME XML library
http://xmlsoft.org/
/usr/local/Cellar/libxml2/2.9.4_2 (277 files, 10MB)
... Built from source on 2017-04-05 at 01:23:21

==> Caveats
libxml2 is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
* I tried to install a year ago when Badge::Simple was released but could not figure out my problem with libxml2 :-/

Thank you


In reply to XML::LibXML setup of library paths by Anonymous Monk

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.