Search code examples
homebrewlibxml2

Warning: libxml2 is a keg-only and another version is linked to opt


When I

$ brew install libxml2

I get:

Warning: libxml2 is a keg-only and another version is linked to opt.
Use brew install --force if you want to install this version

So, is there something wrong here? or just a newer version comes out, I can install that newer version?

I have this warning with:

brew install libiconv

too.


Solution

  • Try this:

    brew install --force libxml2
    brew link --force libxml2