pecl install package-xxx 报错解决办法
文章目录
当我们使用pecl install 安装包的时候,出现如下的错误:
Warning: Invalid argument supplied for foreach() in Command.php on line 249
PHP Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/php/PEAR/Installer/Role.php on line 173
Notice: Undefined index: honorsbaseinstall in Role.php on line 173
PHP Notice: Undefined index: honorsbaseinstall in /usr/share/php/PEAR/Installer/Role.php on line 173问题原因:缺少php-xml扩展支持,安装上该扩展就可以了。
sudo apt install php-xml
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论