php扩展pecl安装后缀错误

标签 php linux pecl igbinary

我在 Webuzo (centos-6-x86_64.openvz) 的 /usr/local/apps/php54/ 中有一个 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 将 php_suffix 设置为 /usr/local/apps/php54/bin/php 但这会导致phpize 失败。

最佳答案

更新 pecl 的 temp_dir

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

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

关于php扩展pecl安装后缀错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27528386/

相关文章:

php - 如何在网页中嵌入 Neo4j Graph?

php - 从/但包含 .. 开始的路径仍然是绝对路径吗?

javascript - 如何使用第二个 Node 服务器运行独立的 express.js 应用程序?

php - 安装 PHP 的 PECL sphinx 模块时出现问题

php - 使用 Visual Studio 2008 编译 php 扩展,MODULE ID 与 php 不匹配

php - 使用 PDO 插入值

用于表单验证的 Javascript 无法正常运行

c++ - 播放创建的音频数据有噪音和周期性的咔哒声

node.js - Windows 域中的 Linux 服务器上使用 NodeJS 进行 SSO

php - 如何告诉 MAMP 使用哪个版本的 PHP?