Click to See Complete Forum and Search --> : Problems installing PHP


Darkhour
12-02-2003, 12:59 PM
I am trying to install PHP on my box and I am getting the following error.


[root@localhost php-4.3.4]# ./configure --with-httpd --with-mysql
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2425: lex: command not found
configure: error: cannot find output from lex; giving up


I am not sure what this lex is. aney held would pe appreciated.

-Darkhour

Icarus
12-02-2003, 01:05 PM
Lex is some kind of programming launguage I've never heard of either :)

http://ds9a.nl/lex-yacc/

What distro are you using? I'm sure you can find RPMs for it at http://rpmfind.net

Darkhour
12-02-2003, 01:10 PM
Thanx =)

I think it is for sparc systems. I was looking in the configure file.

I am running mandrake 9 but I am thinking of upgrading to a newer version.

-Darkhour

glasdave
12-02-2003, 04:31 PM
Seems like you need both flex and bison to finish your install.

Darkhour
12-02-2003, 06:52 PM
thanx =) I am installing bison and flex as we speek. I am not sure how I missed it. Thank you

Darkhour