Difference between packages libxml2-dev and libxml2

us flag

I have simple C++ application that uses libxml2 library. For this purpose I need to install it. But which package I need to install:

sudo apt-get install libxml2

System still complains regarding missing libxml header file.

sudo apt-get install libxml2-dev

Builds fine.

What is difference between libxml2 and libxml2-dev packages?

cn flag

libxml2 contains the library itself, so to speak. libxml2-dev contains specifically the header files for C (or in this case, C++) development. This principle holds for many other packages as well. For example, libmysqlclient21 contains the MySQL command line client library. If you want to use this library in your own code, you need to install the corresponding header files from the package libmysqlclient-dev.

N0rbert avatar
zw flag
Link to will be useful.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.