Php 无法使用终端在Mac中的本地主机上安装Contao CMS

Php 无法使用终端在Mac中的本地主机上安装Contao CMS,php,contao,Php,Contao,我在Mac上安装Contao时遇到问题。 我运行从中获取的命令 composer创建项目contao/managed edition 但我得到了这个错误 hasnainshafqat@Hasnains-MBP project % composer create-project contao/managed-edition PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/e

我在Mac上安装Contao时遇到问题。 我运行从中获取的命令

composer创建项目contao/managed edition

但我得到了这个错误

hasnainshafqat@Hasnains-MBP project % composer create-project contao/managed-edition

PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl), /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so)) in Unknown on line 0
Creating a "contao/managed-edition" project at "./managed-edition"
Installing contao/managed-edition (4.9)
  - Installing contao/managed-edition (4.9): Loading from cache
Created project in /Users/hasnainshafqat/contao/project/managed-edition
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - contao/newsletter-bundle 4.9.2 requires contao/core-bundle 4.9.2 -> satisfiable by contao/core-bundle[4.9.2].
    - contao/newsletter-bundle 4.9.1 requires contao/core-bundle 4.9.1 -> satisfiable by contao/core-bundle[4.9.1].
    - contao/newsletter-bundle 4.9.0 requires contao/core-bundle 4.9.0 -> satisfiable by contao/core-bundle[4.9.0].
    - contao/core-bundle 4.9.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - contao/core-bundle 4.9.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - contao/core-bundle 4.9.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - Installation request for contao/newsletter-bundle ^4.9 -> satisfiable by contao/newsletter-bundle[4.9.0, 4.9.1, 4.9.2].

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
我已经启用了php.ini文件的扩展名,但仍然不知道我做错了什么。 这是我安装的最新版本。请让我知道我要修什么 php版本是

hasnainshafqat@Hasnains-MBP project % php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl), /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so)) in Unknown on line 0
PHP 7.3.11 (cli) (built: Feb 29 2020 02:50:36) ( NTS )

这回答了你的问题吗?你忘了重新启动web服务器了吗?我试过了,但没有多大帮助。我现在被卡住了。我需要重新启动哪个服务?我正在通过composer安装,并且composer已在全球安装。我尝试重新启动我的笔记本电脑,但它不起作用启用扩展后需要重新启动Apache或Nginx安装的
intl
扩展与安装的php版本不兼容。检查
php.ini
中的扩展路径,并验证它是否正确(如果可能有多个可用路径,请查看
/usr/lib/php/extensions/
,并使用正确的路径)。重新启动apache不会解决您的问题,因为您在这里从CLI使用php,因此每次调用时都会加载扩展。这是否回答了您的问题?你忘了重新启动web服务器了吗?我试过了,但没有多大帮助。我现在被卡住了。我需要重新启动哪个服务?我正在通过composer安装,并且composer已在全球安装。我尝试重新启动我的笔记本电脑,但它不起作用启用扩展后需要重新启动Apache或Nginx安装的
intl
扩展与安装的php版本不兼容。检查
php.ini
中的扩展路径,并验证它是否正确(如果可能有多个可用路径,请查看
/usr/lib/php/extensions/
,并使用正确的路径)。重新启动apache不会解决您的问题,因为您在这里从CLI使用php,因此每次调用时都会加载扩展。