• Mac 用pecl安装PHP扩展失败


    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
  • 相关阅读:
    Python记录12:迭代器+生成器+生成式
    Python记录11:叠加多个装饰器+有参装饰器
    Python记录10:模块
    Day7
    Day7
    Day7
    Day7
    Day7
    Day7
    Day7
  • 原文地址:https://www.cnblogs.com/jing1208/p/15518464.html
Copyright © 2020-2023  润新知