Click to See Complete Forum and Search --> : setting up php and apche, NHF


wurmy
12-13-2000, 01:02 PM
i'm following the directions on the NHF: http://www.linuxnewbie.org/nhf/intel/webserving/php_apache.html. i have apache running, and i unzipped php. i get to the part where you go to the php directory and type in ./configure --with. (i only use the ones in red cause of the errors). near the end of all the text it spits out is:
checking for flex....no
checking for lex.....no
./configure flex command not found
checking for flex....lex
checking yywrap in -ll..no
checking lex output file to root.... ./configure: lex: command not fou nd
configure: error: cannot find output from lex; giving up

what?

PLBlaze
12-13-2000, 01:13 PM
You need either flex or lex utility to be installed...What distro you use?One of these should be standard on every distro,strange...Either check on your cd-rom for them or get flex from ftp.gnu.org/gnu/non-gnu/flex/flex-2.5.4a.tar.gz and compile it.Hope this helps.

wurmy
12-13-2000, 01:15 PM
i'm using mandrake 7.2
i've been noticing this happening to me a lot. sendmail wasn't installed (and i couldn't find it anywhere, had to download it). couldn't find apache....when i installed it i let it pretty much do its own thing, but i assumed it would install most of this stuff even that way...maybe i should have gone in and chosen packages...oh well. ok i'll try that.

wurmy
12-13-2000, 06:58 PM
im still getting an error that it can't find lex....do i have to have them both?

wurmy
12-13-2000, 07:05 PM
let me backtrack...
i downloaded flex-2.5.4, ran ./configure. then ran make and i get this:
yacc -d ./parse.y
make: yacc:command not found
make ***[parse.c] Error 127

jeez am i missing yet another piece of this puzzle??