Articles of pecl

pecl-ssh2-0.11 Freebsd升级到php 5.3.2后编译错误

嗨,我一直在寻找这一整天的答案,并找不到解决我的问题。 我也遇到了一个关于serverfault的端口的问题,我刚刚回答,希望可以帮助别人。 但是我的问题是这样的。 在/ usr / ports / security / pecl–ssh2中运行“make” 我得到这个错误 ===>build立pecl-ssh2-0.11 / bin / sh /usr/ports/security/pecl-ssh2/work/ssh2-0.11/libtool –mode =编译cc -I。 -I / usr / ports / security / pecl-ssh2 / work / ssh2-0.11 -DPHP_ATOM_INC -I / usr / ports / security / pecl-ssh2 / work / ssh2-0.11 / include -I / usr / ports […]

PHP中的Memcached扩展错误

昨天我迁移到了Rackspace(CentOS 5.5)。 一切都已经configuration好了(apache,php,mysql,memcached)并且运行良好。 唯一我忘了,最后安装的是邮件服务器(iRedMail)。 之后,出于某种原因,memcached被搞砸了: [root @ mail php.d]#php -v PHP Warning: PHP Startup: memcache: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP 5.2.10 (cli) (built: Nov 13 2009 11:44:05) Copyright (c) 1997-2009 The […]

糟糕的解释器和phpize失败

尝试安装在Centos 5上执行以下操作: [root@d ~]# pecl install imagick 我得到了以下输出: downloading imagick-3.0.1.tgz … Starting to download imagick-3.0.1.tgz (93,920 bytes) …………………done: 93,920 bytes 13 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 /usr/bin/autoconf: /usr/bin/autom4te: /usr/bin/perl: bad interpreter: Permission denied /usr/bin/autoconf: line 271: /usr/bin/autom4te: Success ERROR: […]

使用NGiNX在Ubuntu上安装PHP-FPM(PHP 5.4)

这是CMD: pecl install apc 结果: downloading APC-3.1.9.tgz … Starting to download APC-3.1.9.tgz (155,540 bytes) ……………………………done: 155,540 bytes 54 source files, building running: phpize Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this […]

在pecl安装oauth过程中失败

我试图安装pecl oauth软件包,但得到一个错误: root@ubuntu:/# pecl install oauth downloading oauth-1.2.3.tgz … Starting to download oauth-1.2.3.tgz (45,531 bytes) ………….done: 45,531 bytes 6 source files, building running: phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 building in /tmp/pear/temp/pear-build-rootu9SvUc/oauth-1.2.3 running: /tmp/pear/temp/oauth/configure checking for grep that handles long lines and -e… /bin/grep […]

Ubuntu服务器上未定义的PHP函数http_post_data

在两个php.ini文件(Apache的和普通sudo updatedb && locate php.ini : sudo updatedb && locate php.ini )中添加了以下Dynamic Extensions : extension=raphf.so extension=propro.so extension=http.so 冉以下安装,这一切工作: sudo apt-get install libpcre3-dev php5-dev php-pear sudo pecl channel-update pecl.php.net sudo pecl install pecl_http 然而,testing仍然失败 php -r 'http_post_data();' PHP Fatal error: Call to undefined function http_post_data() in Command line code on line 1 PHP Stack trace: PHP […]

告诉APT使用从源安装的软件包进行依赖

我在一个覆盆子pi(我用作我的咨询业务的Web服务器),我正在尝试安装包php7.0-dev。 但是,如果我有这个问题: sudo apt-get install php7.0-dev Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of […]

在CentOS 6.5 x64上PHP升级后,Apache无法启动

我有一个CentOS 6.5和PHP 5.5.11的开发者服务器(最新来自REMI仓库)。 今天我做了: yum –enablerepo=remi,remi-php55 update 更新的Apache和一些其他库,如PHP的Mongo(PECL我认为)。 更新后,我重新启动了我的httpd服务,并注意到它closuresApache失败。 “显然”再次启动纠正,但现在我发现服务器不工作 – 网页不提供服务。 检查Apache日志显示以下行: PHP致命错误:PHP启动:为防止数据损坏,您不允许在第0行的未知32位平台上启用mongo.native_long设置 也许我可以通过禁用或卸载该扩展来解决这个问题,但是由于我在某些地方使用了扩展,这不是一个真正的select。 任何关于如何解决这个问题的build议,除了禁用扩展? 编辑:为什么如果系统是i686和图书馆是i686我得到这个错误 我做了一些关于YUM日志的研究并看到结果: tail /var/log/yum.log Apr 03 01:25:45 Updated: php-recode-5.5.11-1.el6.remi.i686 Apr 03 01:25:45 Updated: php-mbstring-5.5.11-1.el6.remi.i686 Apr 03 01:25:46 Updated: php-intl-5.5.11-1.el6.remi.i686 Apr 03 01:25:47 Updated: php-xml-5.5.11-1.el6.remi.i686 Apr 04 09:09:59 Updated: krb5-libs-1.10.3-15.el6_5.1.i686 Apr 04 09:10:00 Updated: httpd-tools-2.2.15-30.el6.centos.i686 Apr 04 09:10:07 Updated: php-pecl-mongo-1.5.0-1.el6.remi.5.5.i686 […]

似乎无法安装imagick

我试图安装PHP PEAR PECL扩展名“imagick”(image magick),但是失败了。 看来,我坚持安装软件包的进展,但这一个让我难住。 它似乎在底部一路倒下。 请注意:我正在使用ArchLinux,apt-get不保存我。 [root@Crux tmp]# pecl install imagick downloading imagick-3.0.1.tgz … Starting to download imagick-3.0.1.tgz (93,920 bytes) …………………done: 93,920 bytes 13 source files, building running: phpize Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 Please provide the prefix of Imagemagick installation [autodetect] : […]

PHP7中的PECL命令错误

我升级了PHP到版本7,现在我遇到了pecl命令的问题。 当我运行sudo pecl install mongo我得到了很长的错误列表: Warning: Invalid argument supplied for foreach() in Command.php on line 249 Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249 Warning: Invalid argument supplied for foreach() in Command.php on line 249 Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249 Warning: Invalid argument supplied for foreach() […]