官网下载源代码
http://libvirt.org/downloads.html
编译安装
http://libvirt.org/compiling.html
Configure Error
Error: checking libxml2 xml2-config >= 2.6.0 … configure: error: Could not find libxml2 anywhere
显示libxml2 未安装。
apt-cache search libxml2 查找安装包
apt-get install libxml2 libxml2-dev
Error: configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt
apt-get install libdevmapper1.02.1 libdevmapper-dev
Error: configure: error: libnl-devel >= 1.1 is required for macvtap support
apt-get install libnl-dev
安装完libnl-dev后还是报同样的错误,安装pkg-config 修改一下以安装的libnl-devel的版本
apt-get install pkg-config
pkg-config –modversion libnl-1
Error:configure: error: Y