PHP 7.3.8 安装 ext-Redis 扩展 报错处理方案
问题:
本地执行
composer install
出现的一个错误,处理方案在下方系统
- Mac Os 10.14.6
- PHP 7.3.8
- 包工具:homebrew
安装 之前执行: pecl search redis
安装 ext-redis
:
pecl install redis
error 错误
Warning: mkdir(): File exists in /usr/local/Cellar/php/7.3.8/share/php/pear/System.php on line 294 ERROR: failed to mkdir /usr/local/Cellar/php/7.3.8/pecl/20180731`
解决方案:
- 命令行下面使用此命令
mkdir -p /usr/local/lib/php/pecl
- 或者将当前php 版本 导入到系统环境变量
export PATH=$PATH:/usr/local/Cellar/php/7.3.8/bin >> ~/.zshrc
相关其他方案请查看:
Homebrew-core
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: