【发布时间】:2014-11-12 20:40:26
【问题描述】:
我正在尝试安装 pecl_http 作为 php 的扩展。
phpise 工作正常,因为我正在获取配置文件。当我输入 ./configure 时,我收到以下错误消息;
...
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking for gnutls support in libcurl... no
checking for ares support in libcurl... no
checking for bundled SSL CA info... /etc/ssl/certs/ca-certificates.crt
checking for event2/event.h... found in /usr
checking for libevent version, roughly... 2.0.19-stable
checking for ext/raphf support... no
configure: error: Please install pecl/raphf and activate extension=raphf.so in your php.ini
我在我的 php.ini 文件中添加了以下行
extension=raphf.so
我知道 raphf 已安装并正在加载,因为我使用以下 php 检查了它:
echo extension_loaded(raphf) ? "raphf loaded" : "raphf not loaded";
返回它已加载。
为什么 ./configure 看不到 raphf?
【问题讨论】:
-
查看
configure脚本,了解它检查的具体内容和方式。可能只是 php.ini 位置不匹配,php 二进制文件,或者它正在寻找头文件。