尝试在本地安装 "Prestashop" 但 INTL 安装不正确

Trying to install locally "Prestashop" but INTL isn't installed correctly

我试图在我的 WAMP 服务器上本地安装 Prestashop 但没有成功,当我执行命令 php composer.phar install 时,终端给我这个错误:

Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages.

问题 1 - 您的系统中缺少请求的 PHP 扩展名 ext-intl *。安装或启用 PHP 的国际扩展。

我已经检查过 phpinfo(),它从以下路径加载 php.ini:

Configuration File (php.ini) Path /Applications/MAMP/bin/php/php7.2.8/conf Loaded Configuration File /Applications/MAMP/bin/php/php7.2.8/conf/php.ini

在 php.ini 中,我已经启用了 INTL 扩展,如下所示: 分机=intl.so

但似乎不起作用..有什么建议吗?

Composer是运行系统的php,不是wamp server的php,需要把系统的"path"变量改成运行 与你的 wamp 的 php,这里有一个关于如何更改路径的教程:https://john-dugan.com/add-php-windows-path-variable/

如果无法使用 composer 安装,请尝试下载文件 Here

解压这两个文件,

现在您有 Index.php 和 prestashop.zip,

将它们放在 MAMP/www/yourPrestashopFolder、

现在请使用您的网络浏览器:localhost/yourPrestashopFolder、

按照这些步骤操作,您的 Prestashop 网站就可以运行了;)