[mod_python] Compile problems - Mod_Python 3.1.4

Gregory (Grisha) Trubetskoy grisha at modpython.org
Mon May 9 16:59:30 EDT 2005



On Mon, 9 May 2005, Frank Gruman wrote:

>
> I originally tired using Apache 2.1.5-dev (from tip on Friday, 06-May)

Technically speaking 3.1.4 is developed against 2.0 apache, but assuming 
that the tip said it worked, perhaps that isn't the problem...

> /usr/local/bin/flex -R -opsp_parser.c --header-file=include/psp_flex.h psp_parser.l
> make[2]: /usr/local/bin/flex: Command not found
> make[2]: *** [psp_parser.c] Error 127
> make[2]: Leaving directory `/sources/mod_python-3.1.4/src'
> make[1]: *** [build] Error 2
> make[1]: Leaving directory `/sources/mod_python-3.1.4/dist'
> make: *** [do_dso] Error 2

First thing I'd make sure of is that you actually have flex and that you 
have the right flex version, it needs to be at least 2.5.31, 2.5.4 won't 
cut it:

$ /usr/local/bin/flex  --version
flex 2.5.31

...but you're right, a pre-generated psp_parser.c file should already be 
distributed. Basically you have two options - get flex, or figure out why 
make decided to regenerate psp_parser.c - something with the file dates, 
no doubt.

HTH,

Grisha




More information about the Mod_python mailing list