php - 如何在 MAC M1 中为 php 版本 8.x 启用 intl 扩展?
问题描述
我的 PHP 版本是PHP 8.0.3
. 我正在尝试为应用程序启用 php intl 扩展。
php -v
PHP 8.0.3 (cli) (built: Mar 11 2021 09:04:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.3, Copyright (c) Zend Technologies
发出命令后我什么也没得到
php --modules | grep intl
我还通过以下命令使用 brew 升级了 php 版本
brew upgrade php
Warning: php 8.0.7 already installed
尝试运行 cakephp 应用程序时出现以下错误
cake_4 % bin/cake bake
PHP Fatal error: You must enable the intl extension to use CakePHP. in /Applications/XAMPP/xamppfiles/htdocs/cake_4/config/requirements.php on line 31
如何在 brew 中安装和加载 intl 扩展?
解决方案
推荐阅读
- java - Java2EE总是使用MVC2架构?
- json - NSwag Angular 5 如何获得 json 响应?
- colors - Sphinx 文档包中 LaTeX 输出的自定义颜色
- java - 如何使 PrintWriter 不附加到文件?
- r - 在 R 中,是否有类似于 heatmap() 的函数来可视化大矩阵中的组?
- angular - 升级到 Angular 6/Material 6 后,为什么我面临“mat-input-container 不是已知元素”?
- npm - 如何避免 node-sass 中的子目录输出?
- c - 变量值在 C 中的循环内重置
- java - Eclipse 应用程序在 Ubuntu 18.04 上崩溃
- opencv - 在 SGX-Enclave 项目中添加 OpenCV 库