【问题标题】:Error when installing PHP70 with Homebrew使用 Homebrew 安装 PHP70 时出错
【发布时间】:2016-07-31 00:08:11
【问题描述】:

当我尝试使用 Homebrew 安装 PHP7 时出现此错误

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/sbin/apxs follows:
apxs:Error: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/apr-1-config not found!.

configure: error: Aborting

我用来安装它的命令是:

brew install homebrew/php/php70

这是我的终端截图:

Terminal Screen shot

有没有人对此有解决方案,知道我在网上搜索解决方案没有任何运气

【问题讨论】:

    标签: homebrew php-7 laravel-valet


    【解决方案1】:

    如果您要升级,试试这个:

    brew reinstall php70 --without-apache

    否则如果您是第一次安装php70,请尝试以下操作::

    brew install home-brew/php/php70 --without-apache

    遇到类似问题,在这个 GitHub 问题下找到它:https://github.com/Homebrew/homebrew-php/issues/3283

    【讨论】:

      猜你喜欢
      • 2013-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-24
      • 2021-07-15
      • 2021-07-17
      • 1970-01-01
      相关资源
      最近更新 更多