Quote:
I have php installed in the /usr/share/doc directory
|
Are you sure it is not just the php docs in there? Binary programs have no business being in that directory. This may be the root of your problem...
Anyway, it seems the configure script can't find php-config (which if it is in /usr/share/doc is hardly surprising).
Run 'locate php-config' to find it, then try:
./configure --with-php-config=/usr/bin/php-config
replacing '/usr/bin/php-config' with the actual PATH returned by locate.
If php really is in /usr/share/doc I reccomend reinstalling it somewhere sane (/usr/local/ is a good choice, and the default if I remember correctly).