You will need to download an install flex. You can get the source from the gnu site. ftp.gnu.org/non-gnu/flex. Download, build and install it. The configure script should look for either lex or flex. If the php configure says that you need yacc or bison then you will have to download, build and install bison also.
I think for gd to be of much use, you need to include either png, jpg or freetype. What did you specify when you built gd? You should have had to manually edit the makefile.
When I built my php, I had built png, zlib, jpg and freetype before building gd. I then configure php with these options:
Code:
'./configure' \
'--with-apache=/usr/src/apache_1.3.19' \
'--with-png-dir=/usr/local' \
'--with-zlib-dir=/usr/local' \
'--with-jpeg-dir=/usr/local' \
'--with-gd=/usr/local' \
'--with-mysql=/usr/local/mysql' \
'--with-freetype-dir=/usr/local' \
'--enable-trans-sid' \
'--enable-gd-native-ttf' \
'--enable-track-vars' \
'--enable-shared'
Gary