PECL和PHP生成目录

我试图安装一个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