configuration:错误:找不到php-config。 请使用–with-php-config = PATH

我正在尝试安装一个名为phraseanet的程序。 我运行./configure命令并运行到这个错误:

configure: error: Cannot find php-config. Please use --with-php-config=PATH 

我使用的是Ubuntu 10.04,Apache 2,PHP5和Mysql 5

有谁知道我在哪里可以findphp-config? 我无法find该文件….

要使用php-config,您需要安装PHP开发包,在Ubuntu中,您可以使用以下方法安装PHP5开发包:

 sudo apt-get install php5-dev 

安装php5-dev软件包后,(在我的Ubuntu安装中)php-config可以在以下位置find:

 /usr/bin/php-config 

这是一个脚本,显示墨水文件的configuration – 请参阅http://linux.die.net/man/1/php-config如果你不能安装它与apt试图从PHP网站下载源代码。