Mac通过pecl安装PHP(8.0.7)扩展时报如下错误:
安装redis扩展
- 执行
pecl install redis
安装redis扩展时,发现如下问题:
Warning: mkdir(): File exists in System.php on line 294
PHP Warning: mkdir(): File exists in /usr/local/Cellar/php/8.0.7/share/php/pear/System.php on line 294
Warning: mkdir(): File exists in /usr/local/Cellar/php/8.0.7/share/php/pear/System.php on line 294
ERROR: failed to mkdir /usr/local/Cellar/php/8.0.7/pecl/20200930
以为是没有目录,但是进去发现目录是存在的,
- 解决方案
echo export PATH=$PATH:/usr/local/Cellar/php/7.3.8/bin >> ~/.zshrc