自制软件安装php56 --with-httpd24在OS 10.12上使用make失败:*** [install-recursive]错误1 [install-recursive]错误1

时间:2016-12-28 16:16:36

标签: php installation homebrew

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

当我运行此命令时:brew install php56 --with-httpd24在构建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

1 个答案:

答案 0 :(得分:2)

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

rm /usr/local/var/www允许httpd24成功构建。 请参阅:http://www.pinvoke.net/default.aspx/user32.registerwindowmessage