fatal error: 'libxml/xpath.h' file not found

created at 07-07-2021 views: 8


I encountered a problem when installing readability-lxml on MacOS

src/lxml/includes/etree_defs.h:14:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
1 error generated.


The cause of the problem is that I just upgraded Xcode and did not install the command line tools for Xcode

Install in Xcode:

Xcode -> Preferences... -> Locations

Install using the command line:

xcode-select --install

Successfully installed readability-lxml again!

created at:07-07-2021
edited at: 07-07-2021: