Articles of pecl

IP2Location PECL扩展将不能安装在Mac上不能链接到仅捆绑dylib

我一直在尝试过去2天在我的Mac上安装IP2Location。 我设法安装IP2Location C库,现在PECL extesion正在引发问题。 我跑了phpize,然后'sudo ./configure',我得到以下错误: checking for ip2location support… yes, shared checking for ip2location files in default path… found in /usr/local checking for IP2Location_open_mem in -lIP2Location… no configure: error: wrong ip2location, lib version >= 6.xx is required or library not found 我正在使用最新版本的IP2Location,所以我知道这是正确的版本。 有人可以澄清这个错误吗? 我看了一下config.log,发现这是最后一个错误: 227 configure:4112: checking for ip2location files in default path 228 […]

在Centos 6.9上安装PHP的GnuPG扩展多个PHP版本

我正尝试在安装了多个PHP版本5.3,5.6和7.0的服务器上为PHP安装gnuPG pecl模块。 我能够使用pecl install gnupg来安装基本的5.3版本。 然而,当试图手动phpize和其他版本的./configure ,它永远不会通过testing。 从pecl下载最新的稳定版本后,我正在运行它(对于PHP 7.0) /opt/rh/rh-php70/root/usr/bin/phpize ./configure –with-php-config=/opt/rh/rh-php70/root/usr/bin/php-config make make test 从上面的输出是 Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 checking for grep that handles long lines and -e… /bin/grep checking for egrep… /bin/grep -E checking for a sed that does not truncate […]

有什么步骤来添加一个扩展到PHP而不重新从源代码在Linux中?

我听说PECL可以做这个工作, 有人可以提供一个你好世界演示?

如何在Ubuntu 9.10上手动安装pecl_http?

这本质上是https://stackoverflow.com/questions/4159369/ubuntu-9-04-pecl-extension-downloads-but-does-not-install的转贴。 希望也许有人能帮助我。 我已经这样做了: sudo apt-get install php-pear sudo apt-get install php5-dev sudo apt-get install libcurl3-openssl-dev 安装很好。 但是,下一步: sudo pecl install pecl_http 不安装扩展名,只是下载它。 没有错误消息。 所以我已经解压它并且自己根据http://php.net/manual/en/install.pecl.phpize.php构build它本质上: cd pecl_http phpize ./configure make make install 我也make test '检查一切正常 – 它没有通过一个testing:HttpRequest,这是这​​个包的基础。 事实上,这是行不通的。 $r = new HttpRequest('http://www.google.com'); $r->send; echo $r->getResponseCode(); 没有请求被发送,响应代码是零,但也没有错误。 我怎么能得到这个该死的东西安装? 这是一个错误? 难道我做错了什么? 任何替代方法,解决方法? 帮助赞赏。 谢谢

在CentOS 5.5 64位错误上安装APC?

# sudo pecl install apc downloading APC-3.1.6.tgz … Starting to download APC-3.1.6.tgz (-1 bytes) ….done: 3,585 bytes Could not get contents of package "/tmp/tmpspT8Og/APC-3.1.6.tgz". Invalid tgz file. Download of "pecl/apc" succeeded, but it is not a valid package archive Error: cannot download "pecl/APC" [root@D18634 tmp]# 这个错误是什么意思? 我该如何解决它,谢谢。

在DV上安装PECL扩展错误

我正在按照说明在Media Temple DV 4上安装PECL Extensions,基于这些说明: http ://wiki.mediatemple.net/w/(dv): Install_PECL_extensions 。 运行时: pecl install uploadprogress 它说: pecl安装uploadprogress 正在下载uploadprogress-1.0.3.1.tgz … 开始下载uploadprogress-1.0.3.1.tgz(9,040字节) …..完成:9,040个字节 4源文件,build设 运行:phpize configuration为: PHP的Api版本:20090626 Zend模块Api编号:20090626 Zend扩展Api编号:220090626 build在/var/tmp/pear-build-root/uploadprogress-1.0.3.1 运行:/ root / tmp / pear / temp / uploadprogress / configure 检查egrep … grep -E 检查不截断输出的sed … / bin / sed 检查cc … cc 检查C编译器的默认输出文件名… a.out 检查C编译器是否工作… configure:error:不能运行C编译的程序。 […]

最新PHP上的SQLite(> = 5.4)

http://www.php.net/manual/en/sqlite.installation.php 从PHP 5.4开始,这个扩展只能通过PECL来使用。 http://pecl.php.net/package/SQLite 这个软件包不再被维护,并被取代。 那么,我该如何在PHP上获得SQLite呢? 我想降级到PHP 5.3将工作,但这是明智的?

缺lessPHP libevent函数

我已经安装了php-pecl-event库,但是我不能看到任何库函数: [root@server ~]# php -r "var_dump(function_exists('event_free'));" bool(false) [root@server ~]# php -r "var_dump(function_exists('event_add'));" bool(false) [root@server ~]# php -r "var_dump(function_exists('event_buffer_free'));" bool(false) 这些是我安装的软件包: [root@server ~]# pecl list Installed packages, channel pecl.php.net: ========================================= Package Version State APC 3.1.15dev beta event 1.10.2 stable jsonc 1.3.4 stable memcache 3.0.8 beta memcached 2.2.0 stable msgpack 0.5.5 beta zip 1.12.4 stable zmq 1.1.2 […]

使尝试安装svn-1.0.2失败

试图找出这个错误是怎么回事,所以我们可以成功安装svn-1.0.2 我正在使用命令echo -e "\n" |pecl install svn-1.0.2 [email protected][/logs/apache]> echo -e "\n" |pecl install svn-1.0.2 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/svn.so' – /usr/lib64/php/modules/svn.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/geoip.so' – /usr/lib64/php/modules/geoip.so: cannot open […]

Pecl安装ssh2,使失败

我真的很努力,因为两个小时安装ssh2 pecl …但我得到的是: /bin/sh /root/ssh2-0.11.0/libtool –mode=compile cc -I. -I/root/ssh2-0.11.0 -DPHP_ATOM_INC -I/root/ssh2-0.11.0/include -I/root/ssh2-0.11.0/main -I/root/ssh2-0.11.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/ssh2-0.11.0/ssh2.c -o ssh2.lo mkdir .libs cc -I. -I/root/ssh2-0.11.0 -DPHP_ATOM_INC -I/root/ssh2-0.11.0/include -I/root/ssh2-0.11.0/main -I/root/ssh2-0.11.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/ssh2-0.11.0/ssh2.c -fPIC -DPIC -o .libs/ssh2.o /root/ssh2-0.11.0/ssh2.c:52: error: duplicate 'static' /root/ssh2-0.11.0/ssh2.c: […]