I'm trying to follow a tutorial on installing PHP 4.3.11 on my virtual dedicated server through GoDaddy. It looks like it was written it about 5 years ago: http://www.opendeveloper.org/PHP/HowTo/How_To_Install_PHP_on_Linux/2.html

Everytime I do the ./configure --with-apxs=/usr/sbin/apxs --with-mysql
I get:

[root@webgavel php-4.3.11]# ./configure --with-apxs=/usr/sbin/apxs --with-mysql
creating 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 whether ln -s works... yes
checking for mawk... no
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 2422: lex: command not found
configure: error: cannot find output from lex; giving up

So there's that error at the bottom which I'm assuming is why when I type make and make install I get this:

[root@webgavel php-4.3.11]# make
make: No targets specified and no makefile found. Stop.
[root@webgavel php-4.3.11]# make install
make:
No rule to make target `install'. Stop.

My website has been down for a few days and its really causing me some problems. If someone wouldn't mind helping me that would be great!

If its easier, I'll even just pay someone to install the PHP for me on the server.

I've been searching for days trying to figure this out and I'm really having no luck.

Let me know if you can help.

    Write a Reply...