aria2 icon indicating copy to clipboard operation
aria2 copied to clipboard

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

Open nicolasxu opened this issue 9 years ago • 5 comments

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

nicolasxu avatar Dec 24 '16 19:12 nicolasxu

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?

tatsuhiro-t avatar Jan 03 '17 11:01 tatsuhiro-t

You can run xcode-select --install fix this error.

Rivsen avatar Jan 22 '17 02:01 Rivsen

xcode-select --install is not working on MacOS Catalina.

mihaiav avatar Dec 19 '19 16:12 mihaiav

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

mihaiav avatar Dec 19 '19 16:12 mihaiav

This worked for me sudo ln -s /usr/local/opt/libxml2/include/libxml2/libxml /usr/local/include/libxml after 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

xcaeser avatar Feb 23 '25 15:02 xcaeser