0%

Mac brew install nginx php mysql

1
xcode-select --install

#这个包有问题。没安装。

homebrew/php/php70-imagick

1
brew install homebrew/php/php70 homebrew/php/php70-amqp homebrew/php/php70-apcu homebrew/php/php70-apcu-bc homebrew/php/php70-event homebrew/php/php70-gearman homebrew/php/php70-geoip homebrew/php/php70-geos homebrew/php/php70-gmagick homebrew/php/php70-gmp homebrew/php/php70-intl homebrew/php/php70-mcrypt homebrew/php/php70-mongodb homebrew/php/php70-opcache homebrew/php/php70-pdo-dblib homebrew/php/php70-pdo-pgsql homebrew/php/php70-phalcon homebrew/php/php70-redis homebrew/php/php70-snmp homebrew/php/php70-swoole homebrew/php/php70-tidy homebrew/php/php70-uuid homebrew/php/php70-v8js homebrew/php/php70-xdebug homebrew/php/php70-xxtea homebrew/php/php70-yaf

#这几个包需要–HEAD

1
2
3
Install with `brew install --HEAD homebrew/php/php70-igbinary`
Install with `brew install --HEAD homebrew/php/php70-memcached`
Install with `brew install --HEAD homebrew/php/php70-yaml`

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/opt/php70-gearman/gearman.so’ - dlopen(/usr/local/opt/php70-gearman/gearman.so, 9): image not found in Unknown on line 0

类似错误解决方法:

1
brew install --build-from-source php70-gearman php70-geoip php70-gmagick php70-imagick php70-intl php70-mcrypt php70-mongodb php70-pdo-pgsql php70-redis php70-swoole php70-uuid