程序员工具箱

php 7.0.33 intl ext install note

2023-04-11  本文已影响0人  许一沐

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
上一篇下一篇

猜你喜欢

热点阅读