fplll / fpylll

A Python interface for https://github.com/fplll/fplll
GNU General Public License v2.0
118 stars 60 forks source link

unexpected token `LIBQD,' #271

Open LunaLuan9555 opened 5 months ago

LunaLuan9555 commented 5 months ago

I'm using aotumatic installation, and when configuring the the fplll module, an error occurs like this:

./configure: line 17501: syntax error near unexpected token 'LIBQD,' ./configure: line 17501: 'PKG_CHECK_MODULES(LIBQD, qd, have_libqd="yes",' make: *** No rule to make target 'clean'. Stop. ... Making fplll failed.

I searched through the configure file for fplll and find a variable LIBQD_LIBS but no LIBQD, is there anything wrong?

LunaLuan9555 commented 5 months ago

I temporarily avoid this issue by deleting line 107-130 in configure.ac of fplll lib, and then manually copy the modified fplll lib into fpylll folder instead of using git in install-dependencies.sh

LunaLuan9555 commented 5 months ago

I find this problem only happens on Ubuntu <=18.04, the library works very well on Ubuntu 20.24.

cr-marcstevens commented 5 months ago

I think the error here is misleading: PKG_CHECK_MODULES should have been expanded to code by autotools, but wasn't. Please try to install pkgconfig and libtool if they aren't already installed. Then run autoreconf -i -f and then try configure again.