>백엔드 개발 >PHP 튜토리얼 >homebrew - brew install php55出现问题

homebrew - brew install php55出现问题

WBOY
WBOY원래의
2016-06-06 20:38:371066검색

执行

<code>brew install php55
</code>

的时候有这这一堆:

<code>Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
     of homebrew-php, or you are using a non-standard
     pear.conf location, installation may fail.
</code>

然后:

<code>./configure --prefix=/usr/local/Cellar/php55/5.5.21 --        localstatedir=/usr/loca
checking for krb5-config... /usr/bin/krb5-config
checking for DSA_get_default_method in -lssl... no
checking for X509_free in -lcrypto... yes
checking for pkg-config... no
configure: error: Cannot find OpenSSL's <evp.h>

READ THIS: http://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/josegonzalez/homebrew-php/issues
</evp.h></code>

求助

<code>php -v
PHP 5.5.14 (cli) (built: Sep  9 2014 19:09:25)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
</code>

显示的是我之前安装的版本和安装时间。那么另一个问题就来了,如何完全清理brew 安装的php?

回复内容:

执行

<code>brew install php55
</code>

的时候有这这一堆:

<code>Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
     of homebrew-php, or you are using a non-standard
     pear.conf location, installation may fail.
</code>

然后:

<code>./configure --prefix=/usr/local/Cellar/php55/5.5.21 --        localstatedir=/usr/loca
checking for krb5-config... /usr/bin/krb5-config
checking for DSA_get_default_method in -lssl... no
checking for X509_free in -lcrypto... yes
checking for pkg-config... no
configure: error: Cannot find OpenSSL's <evp.h>

READ THIS: http://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/josegonzalez/homebrew-php/issues
</evp.h></code>

求助

<code>php -v
PHP 5.5.14 (cli) (built: Sep  9 2014 19:09:25)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
</code>

显示的是我之前安装的版本和安装时间。那么另一个问题就来了,如何完全清理brew 安装的php?

<code>brew cleanup php
</code>
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.