nhorman / dropwatch

user space utility to interface to kernel dropwatch facility
GNU General Public License v2.0
632 stars 92 forks source link

Ubuntu 16.04: configure fails to find libreadline even though installed #57

Closed skwiffhub closed 2 years ago

skwiffhub commented 2 years ago

Running ./configure on Ubuntu 16.04 (also tried Ubuntu 18 with same result), I get this:

checking pkg-config is at least version 0.9.0... yes
checking for LIBNL3... yes
checking for LIBNLG3... yes
checking for READLINE... no
configure: error: libreadline is required

... yet it is already installed:

$ sudo apt install -y libreadline-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libreadline-dev is already the newest version (7.0-3).
0 upgraded, 0 newly installed, 0 to remove and 79 not upgraded.

Worked around by commenting out the readline check code in configure and then adding -lreadline to LIBS in src/Makefile, as follows:

LIBS = -lpcap -lreadline
nhorman commented 2 years ago

https://bugs.launchpad.net/ubuntu/+bugs?search=Search&field.bug_reporter=nhorman

lyskai commented 2 years ago

Same issue on Ubuntu 16.04.7 LTS, workaround solve this. Hope ubuntu can take care of https://bugs.launchpad.net/ubuntu/+source/readline/+bug/1938591.