使用pecl安装php扩展时出错-bash: pecl: command not found

原文链接:https://blog.csdn.net/marswill/article/details/77188521

使用pecl安装PHP的扩展时非常方便的,但是如果初次使用pecl安装扩展则会出现如下的错误:[本文档使用的系统为CentOS7版本]

-bash: pecl: command not found
这是因为在我们线上的PHP版本中默认是没有该功能的。为了使用此扩展我们还需要单独安装扩展。

yum install php-devel php-pear
安装完成后就可以直接使用pecl来安装PHP的扩展了

猜你喜欢

转载自www.cnblogs.com/xiesx/p/12276119.html