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

created at 07-07-2021 views: 2

description

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.

solution

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!

Please log in to leave a comment.