nhorman / dropwatch

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

libreadline in centos/rhel 7 #54

Closed wchandler-WUSTL closed 3 years ago

wchandler-WUSTL commented 3 years ago

Hitting this error:

[w.chandler@wuit-s-11408 dropwatch]$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes ... checking for LIBNLG3... yes checking for READLINE... no configure: error: libreadline is required

And I've got all these installed: [w.chandler@wuit-s-11408 dropwatch]$ sudo yum list installed | grep readline readline.x86_64 6.2-11.el7 @rhel-7-server-rpms readline-devel.x86_64 6.2-11.el7 @rhel-7-server-rpms readline-static.x86_64 6.2-11.el7 @rhel-7-server-optional-rpms

Looking at the config, does readline need to be version +8?

Any ideas on something else to install?

Thanks!

nhorman commented 3 years ago

In short, yes, you need libreadline8. You can work with older versions, but those versions failed to include a pkg-config file.

RHEL7 uses an old version of libreadline, in which the pkg-config file was never included, so the current build script can't find it. You're choices on RHEL7 are: 1) install dropwatch via yum (the RHEL7 version of the package has a hack to work around this limitation) 2) grab the patch from the RHEL7 dropwatch src rpm, and apply it to the upstream tree 3) rebuild libreadline from the latest sources, and install them, the pkg-config file will then be present and you can build dropwatch