2011-12-17 63 views
2

我正在尝试安装PECL包,并且收到此错误。我不确定该怎么做,所以希望有人也许能够提供一些帮助:PECL和PHP构建目录

# 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 
+0

运行(以root身份):yum install php-devel – vdbuilder 2011-12-17 04:42:34

回答

9

描述Fedora(redhat的基础)使用PECL,梨,或phpize命令,安装PHP-开发包:

$ yum install php-devel