[libvirt-users] problem installing libvirt from source

From config.log:
I'm trying to compile and install libvirt-0.9.0 on Ubuntu v10.04. The make and install went fine and I don't see any errors but there isn't a libvirt directory created in /usr/local/lib/python2.6/dist-packages. I specified configure --with-vmware -with-esx (and later --with-python), then make, then sudo make install. prefix = /usr/local exec_prefix = ${prefix} pyexecdir = ${exec_prefix}/lib/python2.6/dist-packages pythondir = ${prefix}/lib/python2.6/dist-packages pkgpyexecdir = ${pyexecdir}/libvirt pkgpythondir = ${pythondir}/libvirt

2011/4/26 Lars Nordin <lnordin@internap.com>:
I’m trying to compile and install libvirt-0.9.0 on Ubuntu v10.04. The make and install went fine and I don’t see any errors but there isn’t a libvirt directory created in /usr/local/lib/python2.6/dist-packages.
I specified configure --with-vmware –with-esx (and later --with-python), then make, then sudo make install.
Without looking further into it, did you install the python-dev package? ./configure will disable the Python bindings if it cannot find the required files. But actually when you explicitly specify --with-python then ./configure should fail when something is missing. Did the summary at the end of the ./configure run say "Python: yes"? Matthias

-----Original Message----- From: Matthias Bolte [mailto:matthias.bolte@googlemail.com] Without looking further into it, did you install the python-dev package? ./configure will disable the Python bindings if it cannot find the required files. But actually when you explicitly specify --with-python then ./configure should fail when something is missing. Did the summary at the end of the ./configure run say "Python: yes"? ---------------------------------- That was it. Once I installed python-dev and re-ran configure, make and make install - I have a libvirt module. Odd that the configure script didn't spit out a warning, when I specified "--with-python". Thanks!

于 2011年04月26日 23:05, Lars Nordin 写道:
-----Original Message----- From: Matthias Bolte [mailto:matthias.bolte@googlemail.com]
Without looking further into it, did you install the python-dev package? ./configure will disable the Python bindings if it cannot find the required files. But actually when you explicitly specify --with-python then ./configure should fail when something is missing.
Did the summary at the end of the ./configure run say "Python: yes"? ----------------------------------
That was it. Once I installed python-dev and re-ran configure, make and make install - I have a libvirt module. Odd that the configure script didn't spit out a warning, when I specified "--with-python". Thanks!
This is fixed upstream: https://www.redhat.com/archives/libvir-list/2011-April/msg01148.html Regards Osier
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
participants (3)
-
Lars Nordin
-
Matthias Bolte
-
Osier Yang