centos 上 php-libvirt 安装失败

centos 上 php-libvirt 安装失败

我正在尝试安装php-libvirtcentos 6.4 64x但在./configure 步骤中出现错误:

checking for LIBVIRT... configure: error: Package requirements (libvirt >= 0.6.2) were not met:

No package 'libvirt' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBVIRT_CFLAGS
and LIBVIRT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

已经libvirt安装并且信息为:

Name        : libvirt
Arch        : x86_64
Version     : 1.0.3
Release     : 1.el6
Size        : 0.0  
Repo        : installed
From repo   : kernel-xen
Summary     : Library providing a simple virtualization API
URL         : http://libvirt.org/
License     : LGPLv2+
Description : Libvirt is a C toolkit to interact with the virtualization
            : capabilities of recent versions of Linux (and other OSes). The
            : main package includes the libvirtd server exporting the
            : virtualization support.

错误在哪里?

提前致谢!

答案1

它可能正在检查 libvirt 库的开发文件是否可用。下面显示的是库存版本,由于您正在编译自己的版本,请检查是否已构建它。


Name        : libvirt-devel
Arch        : x86_64
Version     : 0.10.2
Release     : 18.el6_4.4
Size        : 862 k
Repo        : updates
Summary     : Libraries, includes, etc. to compile with the libvirt library
URL         : http://libvirt.org/
License     : LGPLv2+
Description : Includes and documentations for the C library providing an API to use
            : the virtualization capabilities of recent versions of Linux (and other OSes).

相关内容