On 3 September 2012 20:05, Eric Blake <eblake@redhat.com> wrote:
On 09/03/2012 06:39 AM, Rahul Bansal wrote:

[Please don't top-post on technical lists.]

> I ran 'sudo make install' in /path/to/libvirt. But same error is coming.
> Maybe following will be helpful:
> -> I extracted the libvirt.0.10.1 in ~/Downloads
> -> And I am running the code in ~/Downloads/libvirt-0.10.1
> -> I ran 'sudo make install' in the above directory.

And what ./configure arguments did you use?  If you didn't supply
anything in particular, then this installed your copy of libvirt into
/usr/local/, and depending on your setup, your compiler might not be
looking into that directory by default.

--
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

I have been finally able to compile my libvirt code. Actually I reinstalled libvirt with some change in autobuild.sh
so that it installed libraries in /usr/local.
Thanks all for your valuable help and suggestions.