Mac OS X 10.12 시스템에서 Brew를 사용하여 PHP 5.6을 컴파일하는 데 문제가 있습니다. 내가 brew install php56
직접 PHP 5.6를 설치할 수 있습니다 경우에도 문제가 올바른 php.ini의 파일을 사용하지 않는이, 마녀는 /usr/local/etc/php/5.6/php.ini
에서주의해야한다는 것입니다하지만 /etc
에서 가져온 것으로 보인다 때문에Mac OS 10.12에서 Homebrew로 PHP 5.6을 컴파일 할 수 없습니다.
내 문제는 시작된다 : 내가 php56-레디 스 내가 필요로하는 등의 추가 확장을 설치할 수 없기 때문에
[email protected]:~$ php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
이
문제입니다.그래서 나는이 문제를 해결할 수 있는지를보기 위해 소스 PHP 5.6을 구축하고 싶지만, 내가 빌드를 시작할 때 나는 심지어 구글에서 검색 한 후 해결할 수없는이 오류를 얻을 :
[email protected]:~$ brew install php56 --build-from-source
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
[email protected]
==> Updated Formulae
kibana
==> Installing php56 from homebrew/php
==> Downloading https://php.net/get/php-5.6.32.tar.bz2/from/this/mirror
Already downloaded: /Users/mattia/Library/Caches/Homebrew/php56-5.6.32
==> ./configure --prefix=/usr/local/Cellar/php56/5.6.32_8 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.6 --with-config-file-path=/usr/local/etc/php/5.6 --with
Last 15 lines from /Users/mattia/Library/Logs/Homebrew/php56/01.configure:
checking for DSA_get_default_method in -lssl... no
checking for X509_free in -lcrypto... yes
checking for RAND_egd... no
checking for pkg-config... no
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... yes
checking for SSL_CTX_set_ssl_version in -lssl... yes
checking for PCRE library to use... bundled
checking whether to enable the SQLite3 extension... yes
checking bundled sqlite3 library... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for zlib version >= 1.2.0.4... 1.2.8
checking for gzgets in -lz... no
configure: error: ZLIB extension requires gzgets in zlib
을 Google에서 검색을 시도했지만 ZLIB extension requires gzgets in zlib
오류와 관련된 내용을 찾지 못했습니다.
최신 버전의 XCode가 설치되어 있습니다.
제발 도와 주실 수 있나요?
실행중인 PHP 버전을 보려면 php -v를 시도해 주실 수 있습니까? –
나는이 문제를 발견했다고 생각한다. "php"명령은 Homebrew에서/usr/local/bin/php가 아닌/usr/bin/php를로드하지만/usr/local/bin은 my $ PATH에서/usr/bin 앞에 있습니다. – Mat
그게 뭐니 뭐니? PHP를 이전에 설치했습니다. 권리 ? –