Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install php-libvirt on centos 6.4 64x and there is an error in ./configure step:

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.

The libvirt is already installed and the info is:

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         :
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.

Where is the error ?

Thanks in advance!

share|improve this question
up vote 2 down vote accepted

It is probably checking for the availability of the development files of the libvirt library. The stock version is shown below, since you are compiling your own, check if you have built it.

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         :
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).
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.