Я підключався, намагаюся встановитирозширення pecl_http (це залежність від бібліотеки, яку я збираюся використовувати). У мене виникає проблема, коли розширення встановлюється в неправильному каталозі.
Я працюю над Apple MacBook Air, з OSX 10.8.5. У мене є php, який постачається з OSX, і я встановив новішу версію (5.4.27) через Homebrew. Я налаштував свій шлях, щоб включити копію php, яку я встановив через Homebrew.
У моїй конфігурації pecl та в моїй конфігурації php вказується таке розширення_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 для використання файлу php.ini, який асоціюється з php, який я встановив через Homebrew.
Мої питання:
Що може призвести до встановлення pecl в цьому каталозі (на який я його не налаштовував), і що я можу зробити, щоб вирішити цю проблему?
Відповіді:
1 для відповіді № 1PEAR не використовується ext_dir
- клоп; http://pear.php.net/bugs/bug.php?id=18666