2

I do the phpize.. When I reach the ./configure It tells me it can fins the php-config (configure: error: Cannot find php-config. Please use --with-php-config=PATH) I assume it means a file named php-config I do ./configure --with-php-config=/usr/local/src/php5/php-5.3.5/scripts/ --enable-entities Which points to that file's directory, but still, I get same error.

  • How did PHP get installed on your system? – Zoredache Oct 12 '12 at 16:39
  • it was built from source. I am building the extension from within the source folder /usr/local/src/php5/php-5.3.5/ext/source – Itay Moav -Malimovka Oct 12 '12 at 16:43
4

php-config is a shell script (executable program) that should be part of your PHP installation. Normally this would be on your $PATH, but in your case it is not.

Locate the program, and specify its full path (e.g. --with-php-config=/usr/local/apache/PHP/bin/php-config) to resolve the error message.
If you do not know where the script is you can use the locate or find command to help you find it.

  • 1
    Beat me by seconds. In this case, the full PATH is /usr/local/src/php5/php-5.3.5/scripts/php-config according to the post. – DerfK Oct 12 '12 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.