How to build and install libvirt on Mac?

can. picture can. · Oct 30, 2012 · Viewed 13.4k times · Source

I referred to this article, but used more recent libraries. To be explicit, I downloaded libgpg-error-1.10, libgcrypt-1.5.0,gnutls-3.1.3 and libvirt-1.0.0

libgpg-error-1.10, libgcrypt-1.5.0 installed OK and when configure gnutls-3.1.3, an error comes:

configure: error:

* Libnettle 2.5 was not found. Note that you must compile nettle with gmp support.

What I want is to use libvirt's python binding(i.e. import libvirt in python). Could anyone explain how to get a useable python libvirt library?

Answer

Pedro Romano picture Pedro Romano · Oct 30, 2012

Your easiest options is probably using homebrew to install libvirt:

$ brew install libvirt

After that compiling the Python bindings for libvirt should be trivial.