PECL和PHP构建目录

PECL和PHP构建目录,php,linux,shell,redhat,Php,Linux,Shell,Redhat,我正在尝试安装一个PECL包,我收到了这个错误。我不知道该怎么办,所以我希望有人能提供一些帮助: # pecl install -f ssh2 WARNING: failed to download pecl.php.net/ssh2 within preferred state "stable", will instead download version 0.11.3, stability "beta" downloading ssh2-0.11.3.tgz ... Starting to

我正在尝试安装一个PECL包,我收到了这个错误。我不知道该怎么办,所以我希望有人能提供一些帮助:

# pecl install -f ssh2
WARNING: failed to download pecl.php.net/ssh2 within preferred state "stable", will instead download version 0.11.3, stability "beta"
downloading ssh2-0.11.3.tgz ...
Starting to download ssh2-0.11.3.tgz (23,062 bytes)
........done: 23,062 bytes
5 source files, building
running: phpize
Cannot find build files at '/usr/lib64/php/build'. Please check your PHP installation.

ERROR: `phpize' failed

要在fedora(基于redhat)中使用pecl、pear或phpize命令,请安装php-devel包:

$ yum install php-devel
以root用户身份运行:yum安装php-devel