Mac编译安装PHP7报错,报错信息如下:

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: * [sapi/cli/php] Error 1

图片描述

阅读 3.7k
1 个回答
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew options php70
brew install php70

然后在/etc/apache2/httpd.conf里写一句

LoadModule php5_module $HOMEBREW_PREFIX/Cellar/php70/7.0.1/libexec/apache2/libphp7.so
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题