Confusing error when guile-3.0-dev is absent (Ubuntu)
On Ubuntu 21 with guile-3.0 (3.0.1+1-2), when building 3.6.16 from source, the ./configure --with-guile-site-dir=no --prefix=/usr
step complains Guile is not recent enough:
*** Detecting GNU Guile...
checking whether building Guile bindings... yes
***
*** Detecting GNU Guile...
checking for guile-snarf... /usr/bin/guile-snarf
checking for guild... /usr/bin/guild
configure: checking for guile 3.0
configure: found guile 3.0
checking for guile-3.0... /usr/bin/guile-3.0
checking for Guile version >= 3.0... 3.0.1
checking for guild-3.0... (cached) /usr/bin/guild
checking for guile-config-3.0... no
checking for Guile site directory... /usr/share/guile/site/3.0
checking for Guile site-ccache directory using pkgconfig... /usr/lib/guile/3.0/site-ccache
checking for Guile extensions directory... /usr/lib/guile/3.0/extensions
checking for GUILE... yes
checking whether GNU Guile is recent enough... no
configure: WARNING: A sufficiently recent GNU Guile not found. Guile bindings not built.
I suspect that configure should have thrown an error a bit earlier, namely at the lack of guile-config-3.0
. That would make it more obvious that the user needs to install that (in case of Ubuntu guile-3.0-dev
).