使用pecl install 命令安装扩展库报错:bash: pecl: command not found

出现这个问题是因为没有安装php的扩展开发导致的,建议将php以及apache的开发都安装上,使用如下的命令。

yum install php-devel php-pear httpd-devel

如果还不行的话,执行:yum install php-pear php5-dev

pecl install channel://pecl.php.net/libevent-0.1.0 提示libevent installation [autodetect]: 时按回车

如果报错:ERROR: `/var/tmp/libevent/configure –with-libevent’ failed

执行:yum install libevent-devel

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注