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

Created on 24 Dec 2016  路  4Comments  路  Source: aria2/aria2

error:

FeatureConfig.cc:44:10: fatal error: 'libxml/xmlversion.h' file not found

include

     ^

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

build osx question

Most helpful comment

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

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings