安装magento2的时候需要安装一个intl的扩展。
mac下如果报错,image not found in Unknown on line 0,需要更新下icu4c
安装icu cd /usr/local/src/ wget http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz tar -xzf icu4c-56_1-src.tgz cd icu/source ./configure -prefix=/usr/local/icu make && make install 安装intl cd /usr/local/src/lnmp/src/ tar -xzf php-7.0.1.tar.gz cd php-7.0.1/ext/intl /usr/local/php/bin/phpize ./configure –with-php-config=/usr/local/php/bin/php-config make && make install echo ‘extension = intl.so’ >> /usr/local/php/etc/php.ini service php-fpm restart