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.
Asked
Active
Viewed 1,391 times
2

Itay Moav -Malimovka
- 233
- 1
- 4
- 17
-
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 Answers
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.

voretaq7
- 79,879
- 17
- 130
- 214
-
1Beat 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