question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] What does "ERROR: There are 4 binaries with name libxml2" mean?

See original GitHub issue

Conan version: 1.20.2

I’m running into this error message when building our tree with most (but not all) of our profiles. There are many similar messages with different packages. I’m calling conan create with a lockfile to build the package.

The message comes from here:

https://github.com/conan-io/conan/blob/1.20.2/conans/model/graph_lock.py#L324

The wording “binary” is probably misleading here, but I assume this means that somehow there are multiple nodes in the dependency tree with the same name. We probably have overlap in the tree (i.e. not always just the minimal needed packages are required explicitly, sometimes things that are transitive deps of the top-level dependencies are also required explicitly). But we don’t have name collisions in our packages. So what does this error mean exactly and what can I do to resolve it?


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
radonishcommented, Jan 18, 2020

I actually just ran into this myself; I believe for me it’s related to a package being a build requirement for 1 package and a requirement for another in the dependency tree.

1reaction
radonishcommented, Jan 21, 2020

@sztomi, forgot to follow up but I did confirm that a package existing as both a requirement and build requirement was the issue. I was able to switch them all to one category and it worked fine.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

libxml2 install path · Issue #56402 - GitHub
The only thing that I can think of is that LibXML hardcodes a reference to /usr/bin/xml2-config , which uses the incorrect library directory....
Read more >
Unable to install R package due to XML dependency mismatch
I am on OSX and I ran "brew install libxml2" but Homebrew said it was already installed. I will edit the question to...
Read more >
XML for R 4.0.5 - Ask Fedora
Hi there, I am trying to install the package XML for R 4.0.5. ... file name... a.out checking for suffix of executables... checking...
Read more >
Installing lxml
Unless you are using a static binary distribution (e.g. from a Windows binary installer), lxml requires libxml2 and libxslt to be installed, in...
Read more >
The XML C library for Gnome - w3.org - W3C
Libxml is the XML C library developed for the Gnome project. XML itself is a metalanguage to design markup languages, i.e. text language...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found