繁体   English   中英

php extension pecl安装后缀错误

[英]php extension pecl installs suffix error

我在/usr/local/apps/php54/ Webuzo(centos-6-x86_64.openvz)上有一个php实例。 它已经在/usr/local/apps/php54/bin/具有pecl和phpize。 使用命令安装igbinary时

`/usr/local/apps/php54/bin/pecl install igbinary`

我收到此警告:

"WARNING: php_bin /usr/local/apps/php54/bin/php appears to have a suffix 54/bin/php, 
 but config variable php_suffix does not match"

完整日志

# /usr/local/apps/php54/bin/pecl install igbinary
downloading igbinary-1.2.1.tar ...
Starting to download igbinary-1.2.1.tar (Unknown size)
..........................done: 229,376 bytes
9 source files, building
WARNING: php_bin /usr/local/apps/php54/bin/php appears to have a suffix 54/bin/php, but   config variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
shtool at '/tmp/pear/temp/igbinary/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.

ERROR: `phpize' failed

这是pecl的配置列表: sudo /usr/local/apps/php54/bin/pecl config-show

directory
PHP CLI/CGI binary             php_bin          /usr/local/apps/php54/bin/php
php.ini location               php_ini          /etc/php.ini
--program-prefix passed to     php_prefix       <not set>
PHP's ./configure
--program-suffix passed to     php_suffix       <not set>

我已经使用sudo pear config-set php_suffix 54/bin/php设置为/usr/local/apps/php54/bin/php sudo pear config-set php_suffix 54/bin/php但这会导致phpize失败。

更新pecl的temp_dir

mkdir /root/tmp
pear config-set temp_dir /root/tmp

重新安装。 让我知道结果。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM