2011-12-17 103 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