Hello Yandong,


(1)As I known, before compiling libvirt, some packages should be installed.

sudo apt-get install gcc make pkg-config libxml2-dev libgnutils-dev libdevmapper-dev libcur l4-gnutls-dev python-dev libpciaccess-dev libxen-dev libnl-dev 


I just ran $yum builddep libvirt  and  it installed  all the dependencies for libvirt.
I have successfully compiled libvirt. I'll select some bugs to start working on.

Thanks,




--
----------------------------------------------------------
regards,
yandong