Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
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

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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