https://stackoverflow.com/questions/48135890/cant-install-php-intl-extension-on-macosx
https://stackoverflow.com/questions/33259191/installing-libicu-dev-on-mac
https://segmentfault.com/q/1010000010678737
brew install icu4c
/usr/local/installApp/php70/bin/phpize
./configure --enable-intl --with-php-config=/usr/local/installApp/php70/bin/php-config --with-icu-dir=/usr/local/Cellar/icu4c/68.2/ CXXFLAGS=" -g -O2 -std=c++11"
修改 Makefile 文件
CXXFLAGS = -g -O2 -std=c++11
CPPFLAGS = -DHAVE_CONFIG_H -DU_USING_ICU_NAMESPACE=1
网友评论