Hi,
Im trying to install php with mysql support, but without mysql ( the mysql server is on another machine)
I tried following the advice in the tutorial @ http://www.opendeveloper.org/PHP/HowTo/How_To_Install_PHP_on_Linux/
But didn't suceed 🙁
I dont want to install a new version of apache, so i downloaded the php source file to /var/php, unzipped it to /var/php/php-xxxx
then i tried ./configure --with-apxs=/usr/sbin/apxs --with-mysql
This is what i got back (note i dont actually have a file /usr/sbin/apxs) This is what i got back:
[FONT=times new roman]
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 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 2376: lex: command not found
configure: error: cannot find output from lex; giving up
[/FONT]
the i tried ./configure --with-mysql
----------------------------------[FONT=times new roman]
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 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 2376: lex: command not found
configure: error: cannot find output from lex; giving up
----------------------------------[/FONT]
Any help greatly appreciated......