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

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


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
【热门文章】
【热门文章】