fatal error: 'libxml/xmlversion.h' file not found
error:
FeatureConfig.cc:44:10: fatal error: 'libxml/xmlversion.h' file not found #include <libxml/xmlversion.h> ^ 1 error generated. make[3]: *** [FeatureConfig.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I tried the following command, but still getting the same error brew install libxml2
If I understand correctly, you tried building aria2 on Mac OS. This error probably means that header files for libxml2 is not installed in the standard directory. There is many ways to specify the custom directory (e.g., CPPFLAGS), we have Mac OS X binary in this gihub release page. Have you tried that?
You can run xcode-select --install fix this error.
xcode-select --install is not working on MacOS Catalina.
This worked for me sudo ln -s /usr/local/opt/libxml2/include/libxml2/libxml /usr/local/include/libxml after I installed libxml2 with brew and xcode-select --install
This worked for me
sudo ln -s /usr/local/opt/libxml2/include/libxml2/libxml /usr/local/include/libxmlafter I installed libxml2
just so you know that your answer fixed my issue for working with libxml2 in zig.
Thank you.
did this:
sudo ln -s /usr/include/libxml2/libxml /usr/include/libxml