Closed dwu402 closed 3 years ago
I use Ubuntu 20.10 and installing flex is enough in my case:
% sudo apt install flex
The following additional packages will be installed:
libfl-dev
Suggested packages:
bison flex-doc
The following NEW packages will be installed:
flex libfl-dev
I just uninstalled flex, the build failed, then installed just flex and my build works fine.
I am not a Linux expert, but a quick search suggests that installing recommended packages is a default behaviour of Apt in Debian and Ubuntu: [1] https://unix.stackexchange.com/questions/122289/why-install-recommends-default-is-true [2] https://askubuntu.com/a/18553
I think you have problems because you have a non-standard configuration of your system.
Just did a remove and reinstall of flex, and it seemed to install libfl-dev this time. Must have been some transient problem with my system - my configuration showed that the install-recommends config flag was set to true.
Thanks for pointing this out.
I found I needed to install the dev library on Ubuntu 20.04 (focal) to get the compilation on v2.8.9 to work.
It looks like this library provides
libfl.so
that is required to compile.The
flex
package used to depend onlibfl-dev
, per this but now only recommends it:An alternative workaround would be to suggest
flex-old
, for v2.5.4a flex and older.