0

I have installed libxml2 on my machine:

sudo aptitude install libxml2

But I can't find header files. Where header files are located?

vico
  • 4,447
  • 20
  • 55
  • 87
  • 1
    They're not provided by the `libxml2` package - they're provided by `libxml2-dev - Development files for the GNOME XML library` – steeldriver Apr 12 '21 at 16:37

1 Answers1

3

Try installing libxml2-dev instead. And then you'll find the header files in: /usr/include/libxml2/libxml/.

I checked this (without installing it) by installing the program apt-file. Then, I did: sudo apt-file update; sudo apt-file show libxml2-dev.

Ray
  • 1,987
  • 17
  • 27
  • Visiting search results on packages.ubuntu.com as https://packages.ubuntu.com/focal/amd64/libxml2-dev/filelist is good too! – N0rbert Apr 12 '21 at 18:29