[libvirt] libvirt: python bindings

Daniel P. Berrange berrange at redhat.com
Thu Jan 28 18:11:39 UTC 2010

On Thu, Jan 28, 2010 at 05:52:45PM +0000, Sharadha Prabhakar (3P) wrote:
> Hi,
> I'm writing XenServer APIs for libvirt and trying to test it on virt-Manager.
> I need to build the libvirt python bindings for that.
> I tried this for libvirt.
> ./configure -with-xenapi -with-python

You need to use  --  not just -  with arguments, eg --with-python

> make
> make install
> I suppose this is supposed to build a .libs directory with libvirtmod.so in the ~/libvirt/python/
> But I don't seem to have this at all after build. It was a clean build with no errors.
> I need libvirtmod.so to link with virt-manager. I'm using libvirt version 0.7.4
> Can anyone help me with this. Am I missing something here

Also make sure you have python-devel RPM installed (or equivalent) and
have not disabled shared libraries when running configure.

|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

More information about the libvir-list mailing list