Articles of pecl

安装PHP libevent PECL包的问题

在我的Ubuntu 11.04开发机器上,我安装了PHP(通过aptitude)。 我想尝试libevent PHP扩展,但我似乎无法得到它的工作: root@alix-laptop:~# pecl install libevent Failed to download pecl/libevent within preferred state "stable", latest release is version 0.0.4, stability "beta", use "channel://pecl.php.net/libevent-0.0.4" to install install failed root@alix-laptop:~# pecl install channel://pecl.php.net/libevent-0.0.4 downloading libevent-0.0.4.tgz … Starting to download libevent-0.0.4.tgz (9,003 bytes) …..done: 9,003 bytes 3 source files, building running: phpize Configuring for: PHP Api […]

如何在使用pecl安装php扩展时传递configuration选项?

有一个PHP扩展,当我用pecl命令安装时,需要传递一个configuration选项。 我找不到办法做到这一点。 当然,我可以手动安装它,但是我需要它可以用一个命令来安装它 – 这样它就可以通过puppet轻松安装。 有任何想法吗?

在CentOs 5上安装/启用PHP Pecl Intl扩展

原始问题: 我无法在我的CentOs 5机器上安装PHP Pecl Intl扩展。 用以下命令安装icu和libicu之后: $ yum install icu $ yum install libicu 我试图安装Intl扩展,如下所示: $ /usr/bin/pecl install intl 我selectsearchICU库和头文件的默认位置。 它最终崩溃像这样: checking whether to enable internationalization support… yes, shared checking for icu-config… no checking for location of ICU headers and libraries… not found configure: error: Unable to detect ICU prefix or no failed. Please verify […]

pecl安装mongo – 不断编译错误的模块API

在这里使用Ubuntu 12.04,nginx和php5-fpm 我有mongo在php 5.3上运行良好,然后我添加了ondrej / php5 ppa并更新到php5.4。 它保持GD和CURL扩展,但不是mongo。 我重新将该行添加到php.ini文件,并没有。 然后我启用启动错误,并得到这个: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/mongo.so' – /usr/lib/php5/20100525/mongo.so: cannot open shared object file: No such file or directory 所以,疯狂的猜测,我find -name 'mongo.so' ,并将文件从20090626 /移动到20100525 / …导致此错误: PHP Startup: mongo: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20100525 These […]

如何在Linux系统上安装PECL

在http://pecl.php.net/有PECL扩展的下载部分。但是我没有得到PECL *本身**的安装步骤。 以下命令不起作用 – yum intall pecl 在我的系统中,我安装了PECL,所以我可以像这样安装PECL扩展 – pecl install mailparse 但是,在运行pecl命令不能识别的系统中,如何在Fedora 7系统(旧系统)上首先安装PECL。

如何安装旧版本的pecl软件包

我有这个代码 $passengerId = new \MongoId(oPassenger->getId()); return $this->createQueryBuilder('Device') ->update() ->multiple(true) ->field('activated')->set(false) ->field('passenger')->unsetField()->equals($passengerId) ->field('_id')->notEqual($deviceId) ->getQuery() ->execute(); 在我的开发服务器上工作得很好,但在本地机器上崩溃。 在dev返回运行pecl list APC 3.1.13 beta amqp 1.2.0 stable intl 3.0.0 stable mongo 1.3.7 stable 和当地的回报: mongo 1.5.6 stable xdebug 2.2.5 stable 我的机器上的崩溃消息是 "name":"MongoException","message":"Invalid object ID"},"code":500} 我尝试降级我的本地版本的mongo,但我不能用pecl的糟糕文档来弄清楚。 例如,我试过这个: sudo pecl upgrade -f -c channel://pecl.php.net/mongo-1.3.7 但我一直在获取channel does not exist我所有的渠道排列。 也运行mongod –version在本地返回数据库版本v2.6.0 ,在dev上返回数据库版本v2.4.3 […]

在Ubuntu上安装imagick PHP扩展

我试图在我的Ubuntu服务器上安装imagick pecl扩展,并得到下面的错误。 我已经使用aptitude安装了ImageMagick rpm,pecl扩展版本是2.3.0。 我在网上浏览过,但找不到任何指向正确方向的东西。 我也试过寻找任何看起来可能是Wand-config或MagickWand-config程序的错误提示,但找不到任何东西。 steven@server:/var/www$ sudo pecl install imagick downloading imagick-2.3.0.tgz … Starting to download imagick-2.3.0.tgz (86,976 bytes) …………………done: 86,976 bytes 12 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 Please provide the prefix of Imagemagick installation [autodetect] : building […]

PECL命令产生长长的错误列表

目前在CentOS 6.5上运行PHP 5.4。 我安装了webtatic php55w软件包,然后通过PECL安装了PEAR + PECL以及redis和mongo。 不久之后,我意识到5.5与我正在使用的框架不兼容,所以我把yum抹去了php55w并安装了php54w。 现在pecl命令根本不起作用。 每当我发出任何pecl命令(简写为…最多重复几十次)时,它只会产生这么长的一串错误: Warning: Invalid argument supplied for foreach() in Command.php on line 259 Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259 …etc etc etc… Notice: Undefined index: honorsbaseinstall in Role.php on line 180 Notice: Undefined index: honorsbaseinstall in Role.php on line 180 …etc etc […]