[libvirt-users] How to build and install python-libvirt

Martin Kletzander mkletzan at redhat.com
Tue May 27 12:01:15 UTC 2014


On Tue, May 27, 2014 at 05:36:19PM +0800, Qiang Guan wrote:
>
>ubuntu at host-192-168-0-7:~/github$ git clone
>git://libvirt.org/libvirt-python.git
>
>ubuntu at host-192-168-0-7:~/github$ cd libvirt-python/
>
>ubuntu at host-192-168-0-7:~/github/libvirt-python$ python setup.py build
>Package libvirt was not found in the pkg-config search path.
>Perhaps you should add the directory containing `libvirt.pc'
>to the PKG_CONFIG_PATH environment variable
>No package 'libvirt' found
>Package libvirt was not found in the pkg-config search path.
>Perhaps you should add the directory containing `libvirt.pc'
>to the PKG_CONFIG_PATH environment variable
>No package 'libvirt' found
>running build
>/usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
>Package libvirt was not found in the pkg-config search path.
>Perhaps you should add the directory containing `libvirt.pc'
>to the PKG_CONFIG_PATH environment variable
>No package 'libvirt' found
>error: command '/usr/bin/pkg-config' failed with exit status 1
>
>What's the problem?
>

You probably need libvirt-dev(el) package installed.

>--
>------------
>Jackie
>Best Regards
>
>
>_______________________________________________
>libvirt-users mailing list
>libvirt-users at redhat.com
>https://www.redhat.com/mailman/listinfo/libvirt-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140527/892725fe/attachment.sig>


More information about the libvirt-users mailing list