当前位置:Gxlcms > PHP教程 > homebrew-brewinstallphp55出现问题

homebrew-brewinstallphp55出现问题

时间:2021-07-01 10:21:17 帮助过:29人阅读

执行

  1. <code>brew install php55
  2. </code>

的时候有这这一堆:

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

然后:

  1. <code>./configure --prefix=/usr/local/Cellar/php55/5.5.21 -- localstatedir=/usr/loca
  2. checking for krb5-config... /usr/bin/krb5-config
  3. checking for DSA_get_default_method in -lssl... no
  4. checking for X509_free in -lcrypto... yes
  5. checking for pkg-config... no
  6. configure: error: Cannot find OpenSSL's <evp.h>
  7. READ THIS: http://git.io/brew-troubleshooting
  8. If reporting this issue please do so at (not Homebrew/homebrew):
  9. https://github.com/josegonzalez/homebrew-php/issues
  10. </evp.h></code>

求助

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

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

回复内容:

执行

  1. <code>brew install php55
  2. </code>

的时候有这这一堆:

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

然后:

  1. <code>./configure --prefix=/usr/local/Cellar/php55/5.5.21 -- localstatedir=/usr/loca
  2. checking for krb5-config... /usr/bin/krb5-config
  3. checking for DSA_get_default_method in -lssl... no
  4. checking for X509_free in -lcrypto... yes
  5. checking for pkg-config... no
  6. configure: error: Cannot find OpenSSL's <evp.h>
  7. READ THIS: http://git.io/brew-troubleshooting
  8. If reporting this issue please do so at (not Homebrew/homebrew):
  9. https://github.com/josegonzalez/homebrew-php/issues
  10. </evp.h></code>

求助

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

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

  1. <code>brew cleanup php
  2. </code>

人气教程排行