我做的phpize ..当我到达./configure它告诉我,它可以鳍PHP的configuration( configure: error: Cannot find php-config. Please use --with-php-config=PATH
)我认为这意味着一个名为php-config
的文件./configure --with-php-config=/usr/local/src/php5/php-5.3.5/scripts/ --enable-entities
哪个指向那个文件的目录,但仍然,我得到同样的错误。
php-config
是一个shell脚本(可执行程序),应该是你的PHP安装的一部分。 通常这会在你的$PATH
,但在你的情况下不是。
find程序,并指定它的完整path(例如--with-php-config=/usr/local/apache/PHP/bin/php-config
)来解决错误信息。
如果您不知道脚本的位置,可以使用locate
或find
命令来帮助您find它。