#No such file or directory #include <Python.h># in CentOS, i failed to complie the libxml,
[root@Antichrist libxml2-v2.9.7]# make
bacause of an error:
libxml.c:14:20: fatal error: Python.h: No such file or directory #include <Python.h>
actually, im sure that i have the python.h
file in my /usr/include/python3.6m
dirictory.
ive used the command
sudo yum install python3.8-dev
by the help from
https://stackoverflow.com/a/21530768/20116628
but it doesnt work.
Also, the difference from mine and this question is that i could find the file named python.h
.
i also thought its the problem of the environment variable, i changed the .bashrc
file by adding two path settings at the end, which are
export C_INCLUDE_PATH=/usr/include/python3.6:$C_INCLUDE_PATH
export LUS_INCLUDE_PATH=/usr/include/python3.6:$CPLUS_INCLUDE_PATH
, but i still couldnt complie libxml successfully.