Forum OpenACS Q&A: openFTS flex missing on your system?

I am trying to install the openFTS for postgres. There is an error saying that I don't have flex. I installed it but no help.

Here is what I did:

[postgres@jleviagu tsearch]$ pwd
/usr/local/src/postgresql-7.2.3/contrib/tsearch
[postgres@jleviagu tsearch]$ make
***
ERROR: `flex' is missing on your system. It is needed to create the
file `parser.c'. You can either get flex from a GNU mirror site
or download an official distribution of PostgreSQL, which contains
pre-packaged flex output.
***
make: *** [parser.c] Error 1
[postgres@jleviagu tsearch]$ rpm -q flex
flex-2.5.4a-9
[postgres@jleviagu tsearch]$ postgres --version
postgres (PostgreSQL) 7.2.3
[postgres@jleviagu tsearch]$

Many thanks for your help.

Collapse
Posted by Steve Manning on
I just hit the same problem. The solution for me was to edit the ../src/Makefile.global.

Locate the FLEX = line and add /usr/bin/flex (or whatever the path to flex is on your machine)

- Steve