libxml2

libxml2-py.c:3:20: fatal error: Python.h: No such file or directory

1042  git clone https://gitlab.gnome.org/GNOME/libxml2.git
 1043  ls
 1044  cd libxml2/
 1045  ls
 1046  ./configure
 1047  ls
 1048  ./autogen.sh 
 1049  make -j 128

 1054  yum install python-devel
 1055  make -j 128
 1056  make install -j 8

 /usr/local/include/libxml2目录下

[root@localhost libvirt]# ninja -C build 
ninja: Entering directory `build'
ninja: error: '/usr/lib64/libxml2.so', needed by 'src/libvirt.so.0.6010.0', missing and no known rule to make it
[root@localhost libvirt]# 
[root@localhost libvirt]# whereis libxml2
libxml2: /usr/local/lib/libxml2.so /usr/local/lib/libxml2.la /usr/local/lib/libxml2.a
[root@localhost libvirt]# 
[root@localhost libvirt]# ln -s /usr/local/lib/libxml2.so  /usr/lib64/libxml2.so
[root@localhost libvirt]# 
原文地址:https://www.cnblogs.com/dream397/p/13927648.html