> ld: fatal: library -lfl: not found You need to build and install "flex" as well. It seems it's being detected, but the library (libfl.a) isn't being found. If flex is installed, you might need to tweak LD_LIBRARY_PATH to let gcc/cc find it.