Page 1 of 1

php install on Linux - bison problem

Posted: Fri Oct 18, 2002 6:35 am
by willduffay
I'm installing php as a dynamic module on Mandrake 8.0 with Apache 1.3.27 already running. The

Code: Select all

./configure --with-mysql --with-apxs
bit fails with a message telling me that bison needs to be installed:- but bison is installed, at

Code: Select all

/usr/bin/
.

There doesn't seem to be a

Code: Select all

--with-bison=/usr/bin/
option, but I tried it anyway. It didn't work.

It also says that it can't find output from lex. Is that related to flex?

I have bison 1.75 and flex 2.5.4a installed. I assume they are the latest versions, as they were the highest numbers I could see at the GNU site an hour ago.

Any ideas?

(Is this the right place for an installation problem? I'm sure you'll tell me if it isn't!)

Posted: Fri Oct 18, 2002 7:41 am
by willduffay
Okay: bison wasn't at

Code: Select all

/usr/bin/
but had put itself at

Code: Select all

/usr/local/bin/
. So that bit now works.

However, the apxs script/program fails. I have put the path to it :

Code: Select all

/usr/local/apache/bin/apxs
, which is the only apxs I can find. The installation notes say to not use the apxs version in the apache sources. Does this count as being in the apache sources?

The configure script fails with that message saying that perl might not be installed (it is), that mod_so.c might not have been compiled (it was) or that apxs cannot be found. However, it also says the apxs coudn't be succesfully run and then provides the apxs help menu - which isn't particularly helpful - suggesting that it has found apxs.
Any ideas?