我试图在Mac(macos high sierra版本10.13.6)中安装CakePHP 3.8,但是由于昨天我告诉我您的系统缺少扩展名int,所以我遇到了这个问题
User-iMac:TEST zakaria$ composer create-project --prefer-dist
cakephp/app my_app_name
Installing cakephp/app (3.8.0)
- Installing cakephp/app (3.8.0): Loading from cache
Created project in my_app_name
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
- cakephp/cakephp 3.8.1 requires ext-intl * -> the requested PHP
extension intl is missing from your system.
- cakephp/cakephp 3.8.0 requires ext-intl * -> the requested PHP
extension intl is missing from your system.
- Installation request for cakephp/cakephp 3.8.* -> satisfiable
by
cakephp/cakephp[3.8.0, 3.8.1].
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.
User-iMac:TEST User$
有那么多解决方案,但似乎无济于事
答案 0 :(得分:0)
不幸的是,在Mac OS high sierra上本机安装的PHP 7.1.24中缺少Intl扩展。
从php.net下载PHP 7.1,安装XCode命令行工具,ICU(http://site.icu-project.org/),Autoconf,重新安装开发人员工具头文件,最后使用phpize安装Intl扩展。
重要提示:您必须禁用SIP。