I try to build an extension (phpize..../configure --with... etc) The extension builds fine on my machine, but when I go to another machine
(which has PHP built from soure, and the php-configure is both in script folder and the /usr/bin folder)
I get configure: error: Cannot find php-config. Please use --with-php-config=PATH.

Same happen even if I --with-php-config=/usr/bin

Just to make sure, when I type /usr/bin/php-config it runs.

    Have you tried using `--with-php-config=/usr/bin/php-config' instead?

      5 days later

      Thanks - that was my mistake, did not add the file name itself to the path

        Write a Reply...