Unable to compile LIBNETFILTER_QUEUE

3.7k Views Asked by At

I just downloaded libnfnetlink and libnetfilter_queue tarballs.

After succesfully compiling, libnfnetlink is installed (make installed) and I can see it under /usr/lib (set to my LD_LIBRARY_PATH)

[root@pcen] libnetfilter_queue]# ls -l /usr/lib/libnf
libnfnetlink.so.0      libnfsidmap.la         libnfsidmap.so.0.2.0
libnfnetlink.so.0.2.0  libnfsidmap.so.0

But when I builds libnetfilter_queue; I keep on getting this error:

checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBNFNETLINK... no
configure: error: Cannot find libnfnetlink >= 0.0.41

So could you please point out what’s going on? I tried to look for additional documentation but couldn’t find where was the problem.

I will very much appreciate your help. Regards

1

There are 1 best solutions below

0
On BEST ANSWER

If your libnfnetlink.pc files are in /usr/lib/pkgconfig, try this:

export PKG_CONFIG_PATH=/usr/lib/pkgconfig
./configure

I had a similar problem (except I installed into /usr/local).