Articles of pecl

无法执行PECL安装

我一直在尝试做一些PECL安装,但是它们都返回相同types的错误。 与时区有关的东西? 我运行RedHat x86_64 es5。 试图安装geoip-1.0.7: root@server [~]# pecl install geoip-1.0.7 downloading geoip-1.0.7.tgz … Starting to download geoip-1.0.7.tgz (9,416 bytes) …..done: 9,416 bytes Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those […]

在特定的PHP版本上安装MongoDB扩展

我有一个Debiannetworking服务器,我在其上安装了ApacheConfig3的Apache / Mysql / PHP5。我手动安装了额外的PHP版本(PHP 7.0.5),以便在PHP 5上有一个网站,在PHP 7上有一个网站,一切正常。 (我使用下面的教程安装PHP 7: https : //www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ ) 现在我想安装新的MongoDB驱动程序(PHP 7友好),所以它适用于我的PHP 7网站(我得到了遗留的驱动程序在PHP 5上工作)。 为此,我使用pecl install mongodb并将extension=mongodb.so添加到PHP 7 ini文件中。 安装是好的,但是当我检查PHP 7的扩展状态,它告诉我扩展没有加载。 原因似乎是安装在PHP 5版本的MongoDB驱动程序,而不是PHP 7。 我怎么能告诉MongoDB驱动程序安装在PHP 7版本与PECL(或者也许另一种方式来安装它)?

安装Memcache的问题(PECL扩展)

我已经安装了memcached,现在我需要安装PECL扩展memcache。 我运行RedHat x86_64 es5。 安装给我这个: downloading memcache-2.2.6.tgz … Starting to download memcache-2.2.6.tgz (35,957 bytes) ……….done: 35,957 bytes 11 source files, building running: phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 Enable memcache session handler support? [yes] : Notice: Use of undefined constant STDIN – assumed 'STDIN' […]

在Apache + PHP本地安装xdiff

我试图让我的本地主机上安装的PHP的xdiff库,以便我可以做一些testing。 我的设置是PHP 5.3 + Apache + Mac OS X.不幸的是,没有用于xdiff的macports端口。 以下是我到目前为止在/ usr / lib文件夹中完成的操作: sudo curl -O http://www.xmailserver.org/libxdiff-0.23.tar.gz tar -xzf libxdiff-0.23.tar.gz cd libxdiff-0.23/ ./configure make make install 然后我从这里下载了xdiff( http://pecl.php.net/package/xdiff ),然后: phpize ./configure make (所有命令都是使用sudo创build的) 随着xdiff-1.5.1的安装似乎工作。 随着1.4.1我不断得到(也得到这个与梨安装pecl / xdiff): /bin/sh /usr/lib/xdiff-1.4.1/xdiff-1.4.1/libtool –mode=compile cc -I. -I/usr/lib/xdiff-1.4.1/xdiff-1.4.1 -DPHP_ATOM_INC -I/usr/lib/xdiff-1.4.1/xdiff-1.4.1/include -I/usr/lib/xdiff-1.4.1/xdiff-1.4.1/main -I/usr/lib/xdiff-1.4.1/xdiff-1.4.1 -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/usr/local/include […]

当试图安装pecl扩展时,在mac os x 10.7.3上出现$ PHP_AUTOCONF错误

我试图用pecl_http和memcache设置我的机器,在这两种情况下,我得到类似的错误。 这是在MAC OS X 10.7.3(狮子),我也有XCODE安装在它上面。 在运行这些命令之前,我还安装了Zend Server社区版本,并且设置了CFLAGS='-arch i386 -arch x86_64'环境variables集 bash-3.2# **sudo pecl install pecl_http-1.7.1** downloading pecl_http-1.7.1.tgz … Starting to download pecl_http-1.7.1.tgz (174,098 bytes) ……………………………….done: 174,098 bytes 71 source files, building running: phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 Cannot find autoconf. Please check your […]

无法在源码上安装Imagick for Debian,在安装6.7.7时,错误表示需要6.2.4

把我的头发拉出来。 从源码构build的PHP,一切正常。 现在需要安装imagick,不能安装。 我使用PHP 5.3.20(我的应用程序支持的最后一个版本,不能去PHP 5.4)在内核3.7.1上运行Debian。 pecl install imagick … checking ImageMagick MagickWand API configuration program… found in /usr/bin/Wand-config checking if ImageMagick version is at least 6.2.4… configure: error: no. You need at least Imagemagick version 6.2.4 to use Imagick. ERROR: `/tmp/pear/temp/imagick/configure –with-imagick' failed 但是,我已经安装了6.7.7版本: # convert –version Version: ImageMagick 6.7.7-10 2012-11-06 Q16 http://www.imagemagick.org Copyright: […]

安装了Amazon Linux pecl_http但没有提供function

我已经使用Amazon Linux php54-pecl-http Yum软件包安装了PHP的pecl_http扩展。 php -i显示加载的http.ini文件 http.ini的extension=http.so php -m显示安装的HTTP模块 pecl list显示安装的pecl_http 2.0.0beta1 。 但是,当我试图使用它的任何函数 – new HttpRequest() , http_build_url()等等 – 他们回来不存在。 我正在CLI上运行所有的东西(这是一个实用程序服务器),所以在环境之间不可能有不同的php.ini文件。 php -i的http块状态: http HTTP Support => enabled Extension Version => 2.0.0beta1 Used Library => Compiled => Linked libz => 1.2.5 => 1.2.5 libcurl => 7.24.0 => 7.24.0 libevent => 1.4 or greater => […]

我如何安装一个自定义(补丁)PECL扩展?

我试图在我的CentOS 5 / PHP 5.2.6机器上使用htscanner PECL扩展,但是最新版本中有一个错误,在每个php_value指令的末尾添加一个换行符。 此行为导致我的include_path和error_log值不起作用。 错误和补丁logging在PECL网站上: http : //pecl.php.net/bugs/bug.php? id= 16891 我已经下载了最新版本,应用了补丁程序,并重新压缩了软件包 – 但我无法让PECL安装程序接受它或任何本地软件包。 我已经尝试过所有我能想到的pecl install语法的变体,并且只有它能够使其工作,才会首先下载联机副本并忽略本地副本。 任何人都可以推荐从本地文件安装PECL扩展的方法? 感谢您的考虑。

在Linux上从pecl安装一个php扩展(xdiff)

我在我的PHP脚本得到这个错误: Fatal error: Call to undefined function xdiff_file_diff() 我意识到我没有安装xdiff扩展。 当我尝试使用install pecl xdiff命令安装它时,出现了以下错误(其他行): configuration:警告:如果要重新生成PHPconfiguration,您将需要re2c 0.13.4或更高版本:错误:请重新安装libxdiff分发 然后我安装了re2c和libxdiff : wget http://www.compdigitec.com/labs/files/re2c_0135_redhat.rpm wget ftp://ftp.task.gda.pl/vol/vol1/ftp.pld-linux.org/dists/2.0/PLD/i386/PLD/RPMS/libxdiff-0.7-1.i386.rpm rpm -ivh re2c_0135_redhat.rpm rpm -ivh libxdiff-0.7-1.i386 但是之后我仍然得到同样的错误。 PS:我GOOGLE了很多,我发现这个问题的几个人,但他们没有得到答案:(

Linux上的V8js PHP模块 – 找不到libv8.so

碰到v8js-0.1.2(testing版)的问题 – 我看到其他人在网上已经成功了,但无论我运行的是哪个平台/操作系统,我总是遇到同样的问题。 我目前正在尝试构build模块,直接通过pecl ,并在源代码上使用phpize之后phpize 。 它发现V8安装, configure成功,然后出错: /usr/local/src/v8js-0.1.2/v8js.cc: In function 'int zm_startup_v8js(int, int)': /usr/local/src/v8js-0.1.2/v8js.cc:1135: error: 'PHP_V8_VERSION' was not declared in this scope /usr/local/src/v8js-0.1.2/v8js.cc: In function 'void zm_info_v8js(zend_module_entry*)': /usr/local/src/v8js-0.1.2/v8js.cc:1231: error: 'PHP_V8_VERSION' was not declared in this scope make: *** [v8js.lo] Error 1 如果我在v8js.cc中添加#define PHP_V8_VERSION "0.1.2" ,然后得到: /usr/bin/ld: cannot find -lv8 collect2: ld returned 1 exit […]