Click to See Complete Forum and Search --> : PHP4: ./configure quits with an error


Anon
04-01-2001, 08:11 AM
Hi,

I am pretty desperate right now.

I installed Suse 7.0 and
- Apache
- MySQL
- PHP3
worked fine from the beginning (I had to make just a few changes).

Now I want to update to PHP4 (--with-informix=yes). So I got the latest PHP release from the Internet. I deinstalled the old PHP3 (mod_php) with YaST.

Then I call (from /usr/src/php4):

./configure --with-informix=yes

Output:

checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
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 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 how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc u
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 how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... no
checking for lex... no
./configure: flex: command not found
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up

---

My Informix-Database & ClientSDK works fine and I don't think (though I am not sure) the error lies within wrong Informix-configuration.

Please help me!

Best regards
Neo

Anon
04-02-2001, 11:47 PM
Hi ,
php3 and php4 must working correctly together on same server.
you dont must uninstall php3 for use php4...
maybe your uninstall operation delete some necessery elements for php.

Anon
04-03-2001, 03:50 AM
It seems, that "bison" and "flex" are not installed by default (Suse Linux). After I installed both packages, it worked.

Thank you anyway. :-)

Best regards,
Claus