ubuntu@host-192-168-0-7:~/github$ git clone git://libvirt.org/libvirt-python.git ubuntu@host-192-168-0-7:~/github$ cd libvirt-python/ ubuntu@host-192-168-0-7:~/github/libvirt-python$ python setup.py build Package libvirt was not found in the pkg-config search path. Perhaps you should add the directory containing `libvirt.pc' to the PKG_CONFIG_PATH environment variable No package 'libvirt' found Package libvirt was not found in the pkg-config search path. Perhaps you should add the directory containing `libvirt.pc' to the PKG_CONFIG_PATH environment variable No package 'libvirt' found running build /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt Package libvirt was not found in the pkg-config search path. Perhaps you should add the directory containing `libvirt.pc' to the PKG_CONFIG_PATH environment variable No package 'libvirt' found error: command '/usr/bin/pkg-config' failed with exit status 1 What's the problem? -- ------------ Jackie Best Regards
Martin Kletzander
2014-May-27 12:01 UTC
Re: [libvirt-users] How to build and install python-libvirt
On Tue, May 27, 2014 at 05:36:19PM +0800, Qiang Guan wrote:> >ubuntu@host-192-168-0-7:~/github$ git clone >git://libvirt.org/libvirt-python.git > >ubuntu@host-192-168-0-7:~/github$ cd libvirt-python/ > >ubuntu@host-192-168-0-7:~/github/libvirt-python$ python setup.py build >Package libvirt was not found in the pkg-config search path. >Perhaps you should add the directory containing `libvirt.pc' >to the PKG_CONFIG_PATH environment variable >No package 'libvirt' found >Package libvirt was not found in the pkg-config search path. >Perhaps you should add the directory containing `libvirt.pc' >to the PKG_CONFIG_PATH environment variable >No package 'libvirt' found >running build >/usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt >Package libvirt was not found in the pkg-config search path. >Perhaps you should add the directory containing `libvirt.pc' >to the PKG_CONFIG_PATH environment variable >No package 'libvirt' found >error: command '/usr/bin/pkg-config' failed with exit status 1 > >What's the problem? >You probably need libvirt-dev(el) package installed.>-- >------------ >Jackie >Best Regards > > >_______________________________________________ >libvirt-users mailing list >libvirt-users@redhat.com >https://www.redhat.com/mailman/listinfo/libvirt-users
Qiang Guan
2014-May-28 02:43 UTC
Re: [libvirt-users] How to build and install python-libvirt
You are right, thanks~ 于 2014年05月27日 20:01, Martin Kletzander 写道:> On Tue, May 27, 2014 at 05:36:19PM +0800, Qiang Guan wrote: >> >> ubuntu@host-192-168-0-7:~/github$ git clone >> git://libvirt.org/libvirt-python.git >> >> ubuntu@host-192-168-0-7:~/github$ cd libvirt-python/ >> >> ubuntu@host-192-168-0-7:~/github/libvirt-python$ python setup.py build >> Package libvirt was not found in the pkg-config search path. >> Perhaps you should add the directory containing `libvirt.pc' >> to the PKG_CONFIG_PATH environment variable >> No package 'libvirt' found >> Package libvirt was not found in the pkg-config search path. >> Perhaps you should add the directory containing `libvirt.pc' >> to the PKG_CONFIG_PATH environment variable >> No package 'libvirt' found >> running build >> /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt >> Package libvirt was not found in the pkg-config search path. >> Perhaps you should add the directory containing `libvirt.pc' >> to the PKG_CONFIG_PATH environment variable >> No package 'libvirt' found >> error: command '/usr/bin/pkg-config' failed with exit status 1 >> >> What's the problem? >> > > You probably need libvirt-dev(el) package installed. > >> -- >> ------------ >> Jackie >> Best Regards >> >> >> _______________________________________________ >> libvirt-users mailing list >> libvirt-users@redhat.com >> https://www.redhat.com/mailman/listinfo/libvirt-users > > -- > ------------ > Jackie > Best Regards
Reasonably Related Threads
- Re: How to build and install python-libvirt
- Re: How to get uuid info inside a lxc container created by libvirt_lxc
- How to get uuid info inside a lxc container created by libvirt_lxc
- How to enable SELinux driver for libvirt?
- Is there any virsh command to setup cpusettune for lxc?