homebrew install php56 --with-httpd24 在 OS 10.12 上失败,make: *** [install-recursive] Error 1 [install-recursive] Error 1

homebrew install php56 --with-httpd24 fails on OS 10.12 with make: *** [install-recursive] Error 1 [install-recursive] Error 1

我正在尝试使用 httpd24 选项安装 php56 以便我可以在 Mac OS Sierra (10.12.2) 中使用 mod_php apache 模块).

当我 运行 此命令时: brew install php56 --with-httpd24 make 在构建 http24 时失败。 make 日志的最后几行是:

Last 15 lines from /Users/Dash/Library/Logs/Homebrew/httpd24/03.make:
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_heartbeat.la mod_heartmonitor.la
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_dav.la
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_status.la mod_autoindex.la mod_asis.la mod_info.la mod_suexec.la mod_cgi.la mod_cgid.la
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_dav_fs.la
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_dav_lock.la
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_vhost_alias.la mod_negotiation.la mod_dir.la mod_actions.la mod_speling.la mod_userdir.la mod_alias.la mod_rewrite.la
make[4]: Nothing to be done for `local-shared-build'.

make: *** [install-recursive] Error 1

在我的设置中,原来有一个符号链接:/usr/local/var/www 导致 make 在递归命令期间崩溃。

rm /usr/local/var/www 允许 httpd24 成功构建。 参见:https://github.com/Homebrew/homebrew-apache/issues/143