【问题标题】:pecl installs to directory other than ext_dirpecl 安装到 ext_dir 以外的目录
【发布时间】:2014-06-04 22:03:42
【问题描述】:

我一直在努力安装 pecl_http 扩展(它是我要使用的库的依赖项)。我遇到了将扩展安装在错误目录中的问题。

我正在使用 OSX 10.8.5 的 Apple MacBook Air。我有 OSX 附带的 php,并且我通过 Homebrew 安装了更新的版本(5.4.27)。我已将路径配置为包含通过 Homebrew 安装的 php 副本。

我的 pecl 配置和我的 php 配置,将以下内容列为 extension_dir (ext_dir):

/usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525

但是,pecl install pecl_install 命令的输出告诉我扩展程序已安装在以下位置:

/usr/lib/php/extensions/no-debug-non-zts-20090626

我已包含以下输出以供参考:

Build process completed successfully
Installing '/usr/include/php/ext/http/php_http.h'
Installing '/usr/include/php/ext/http/php_http_api.h'
Installing '/usr/include/php/ext/http/php_http_buffer.h'
Installing '/usr/include/php/ext/http/php_http_client.h'
Installing '/usr/include/php/ext/http/php_http_client_request.h'
Installing '/usr/include/php/ext/http/php_http_client_response.h'
Installing '/usr/include/php/ext/http/php_http_cookie.h'
Installing '/usr/include/php/ext/http/php_http_curl.h'
Installing '/usr/include/php/ext/http/php_http_encoding.h'
Installing '/usr/include/php/ext/http/php_http_env.h'
Installing '/usr/include/php/ext/http/php_http_env_request.h'
Installing '/usr/include/php/ext/http/php_http_env_response.h'
Installing '/usr/include/php/ext/http/php_http_etag.h'
Installing '/usr/include/php/ext/http/php_http_exception.h'
Installing '/usr/include/php/ext/http/php_http_filter.h'
Installing '/usr/include/php/ext/http/php_http_header.h'
Installing '/usr/include/php/ext/http/php_http_header_parser.h'
Installing '/usr/include/php/ext/http/php_http_info.h'
Installing '/usr/include/php/ext/http/php_http_message.h'
Installing '/usr/include/php/ext/http/php_http_message_body.h'
Installing '/usr/include/php/ext/http/php_http_message_parser.h'
Installing '/usr/include/php/ext/http/php_http_misc.h'
Installing '/usr/include/php/ext/http/php_http_negotiate.h'
Installing '/usr/include/php/ext/http/php_http_object.h'
Installing '/usr/include/php/ext/http/php_http_options.h'
Installing '/usr/include/php/ext/http/php_http_params.h'
Installing '/usr/include/php/ext/http/php_http_querystring.h'
Installing '/usr/include/php/ext/http/php_http_strlist.h'
Installing '/usr/include/php/ext/http/php_http_url.h'
Installing '/usr/include/php/ext/http/php_http_version.h'
Installing '/usr/lib/php/extensions/no-debug-non-zts-20090626/http.so'

此外,我已将 pecl 配置为使用与我通过 Homebrew 安装的 php 相关联的 php.ini 文件。

我的问题是:

什么会导致 pecl 安装在这个目录中(我没有配置它),我可以做些什么来解决这个问题?

【问题讨论】:

    标签: php macos pear pecl


    【解决方案1】:

    PEAR 不使用ext_dir 是一个错误; http://pear.php.net/bugs/bug.php?id=18666

    【讨论】:

      猜你喜欢
      • 2014-12-22
      • 2013-06-17
      • 2011-08-31
      • 2014-02-26
      • 1970-01-01
      • 2014-10-25
      • 2014-04-01
      • 2014-02-05
      相关资源
      最近更新 更多