Re: libvirt configuration problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/3/12 Onkar Mahajan <kern.devel@xxxxxxxxx>:
> Hi ,
>
> I am getting errors while configuring libvirt to compile it from source.
>
> There is a error in libnl
>
> checking for UDEV... no
> checking whether to compile with macvtap support... yes
> checking whether to compile with virtual port support... no
> checking for LIBNL... no
> configure: error: libnl-devel >= 1.1 is required for macvtap support
>
>
> I have already installed the libnl library in /lib/
>
> [root@localhost lib]# ls libnl*
> libnl.aÂÂÂÂÂÂ libnl-cli.so.2ÂÂÂÂÂ libnl-genl.soÂÂÂÂÂÂÂ libnl-nf.a
> libnl-nf.so.2.0.0Â libnl-route.so.2ÂÂÂÂÂ libnl.so.2.0.0
> libnl-cli.aÂÂ libnl-cli.so.2.0.0Â libnl-genl.so.2ÂÂÂÂÂ libnl-nf.la
> libnl-route.aÂÂÂÂÂ libnl-route.so.2.0.0
> libnl-cli.la libnl-genl.a libnl-genl.so.2.0.0 libnl-nf.so
> libnl-route.laÂÂÂÂ libnl.so
> libnl-cli.so libnl-genl.la libnl.la libnl-nf.so.2
> libnl-route.soÂÂÂÂ libnl.so.2
>
>
> Please help me !!
>
> Regards,
> Onkar
>

The configure script uses pkg-config to detect libnl. Therefore,
pkg-config must be able to find the libnl-1.pc file. On my system it's
/usr/lib/pkgconfig/libnl-1.pc and pkg-config finds it by default.

You can use

  pkg-config --modversion libnl-1

to check the version. If pkg-config can't find the file it'll complain
and suggest that you set the PKG_CONFIG_PATH environment variable to
point to the directory containing the libnl-1.pc file, like this

  PKG_CONFIG_PATH=/path/to/directory pkg-config --modversion libnl-1

You can then run configure the same way

  PKG_CONFIG_PATH=/path/to/directory ./configure

Matthias

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]