/ / pecl wird in ein anderes Verzeichnis als ext_dir - php, macos, pear, pecl installiert

pecl installiert sich in ein anderes Verzeichnis als ext_dir - php, macos, pear, pecl

Ich habe verstopft und versucht, das zu installierenpecl_http Erweiterung (es ist eine Abhängigkeit für eine Bibliothek, die ich verwenden werde). Ich habe ein Problem, bei dem die Erweiterung im falschen Verzeichnis installiert wird.

Ich arbeite an einem Apple MacBook Air mit OSX 10.8.5. Ich habe das PHP, das mit OSX geliefert wird, und ich habe eine neuere Version (5.4.27) über Homebrew installiert. Ich habe meinen Pfad so konfiguriert, dass er die Kopie von PHP enthält, die ich über Homebrew installiert habe.

In meiner Pecl-Konfiguration und in meiner PHP-Konfiguration wird Folgendes als extension_dir (ext_dir) aufgeführt:

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

Die Ausgabe von pecl install pecl_install Befehl teilt mir mit, dass die Erweiterung an folgendem Ort installiert wurde:

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

Ich habe die folgende Ausgabe als Referenz beigefügt:

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"

Zusätzlich habe ich pecl so konfiguriert, dass es die php.ini-Datei verwendet, die mit dem PHP zusammenhängt, das ich über Homebrew installiert habe.

Meine Fragen sind:

Was würde dazu führen, dass pecl in diesem Verzeichnis installiert wird (für das ich es nicht konfiguriert habe) und was kann ich tun, um dieses Problem zu lösen?

Antworten:

1 für die Antwort № 1

PEAR nicht verwenden ext_dir ist ein Bug; http://pear.php.net/bugs/bug.php?id=18666