PECL和PHP构建目录

时间:2011-12-17 04:30:58

标签: 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 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

1 个答案:

答案 0 :(得分:9)

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

$ yum install php-devel