PECL

Fatal error: 'ext/standard/php_smart_str.h' file not found

∥☆過路亽.° 提交于 2019-12-01 11:21:44
问题 I downloaded MacOS Mojave and did a clean installation on my mid 2012 macbook Pro. Installed XCode with command line tools. Got native Apache and PHP working, with PEARL, PECL and last version of ICU (63.1) for later use of Intl extension. But every attempt of Intl instalation has failed. Before the clean instalation, i found a intl.so on a pen drive and used ICU version 54, but isn't the best way to get things working for a development enviroment. In the end, i'm stuck with PECL incapable of

Changing Pecl installation directory

て烟熏妆下的殇ゞ 提交于 2019-12-01 08:36:54
问题 Hi i'm having trouble with pecl installation, the problem i'm having is i'm installing gearman , and i'm now at the stage of installation of the pecl PHP extension. it should be a simple as executing the command : $ sudo pecl install gearman the installation was successfull and I could even test a php containing <?php echo "Gearman version: " . gearman_version() . PHP_EOL; ?> executing it in CLI php using : $ php gearman_version.php does the trick. Unfortunately I am using a stack. lappstack

Install PECL Memcached Error

自闭症网瘾萝莉.ら 提交于 2019-12-01 05:10:48
问题 I followed the following steps to install PECL memcached in my Centos Server, always got errors. First. Install libmemcached cd /opt wget http://launchpad.net/libmemcached/1.0/0.40a/+download/libmemcached-0.40.tar.gz tar -xzvf libmemcached-0.40.tar.gz cd libmemcached-0.40 ./configure make make install Secondly, Install PECL memcached cd /opt pecl download memcached-1.0.2 tar zxvf memcached-1.0.2.tgz cd memcached-1.0.2 phpize ./configure --with-libmemcached-dir=/opt/libmemcached-0.40

pecl install cassandra throws: “error: Unable to load libcassandra”

我的梦境 提交于 2019-12-01 02:09:04
问题 pecl install cassandra produces an error: configure: error: Unable to load libcassandra ERROR: `/tmp/pear/temp/cassandra/configure' failed This error message is subject of another question here on SO, but has not been resolved: Installing php datastax driver on ubuntu Can anybody help? 回答1: You are missing cassandra C++ driver. I have run into the same issue on Ubuntu 14.04. I have done the following and it worked for me: Prerequisites (Ubuntu 14.04): sudo apt-get install php-pear php5-dev

php 安装扩展管理工具 pecl

僤鯓⒐⒋嵵緔 提交于 2019-12-01 00:22:11
使用pecl安装PHP的扩展时非常方便的,但是如果初次使用pecl安装扩展则会出现如下的错误:[本文档使用的系统为CentOS7版本] [root@iZ2zejcwx7sfb0ydjcwtskZ ~]# pecl -bash: pecl: command not found 1 2 这是因为在我们线上的PHP版本中默认是没有该功能的。为了使用此扩展我们还需要单独安装扩展。 yum install php-devel php-pear 1 安装完成后就可以直接使用pecl来安装PHP的扩展了 --------------------- 作者:MarsWill 来源:CSDN 原文:https://blog.csdn.net/marswill/article/details/77188521 版权声明:本文为博主原创文章,转载请附上博文链接! 来源: oschina 链接: https://my.oschina.net/u/588516/blog/2249235

Compiling a php extension with Visual Studio 2008, MODULE ID don't match with php

跟風遠走 提交于 2019-11-30 23:46:31
After compiling my own php extension using VC9 (2008) and VC10 (2010) using the next steps: http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/ I get the next error when initializing php: PHP Warning: PHP Startup: FirstPHPExt Module: Unable to initialize module Module compiled with build ID=API20090626,TS PHP compiled with build ID=API20090626,TS,VC9 These options need to match in Unknown on line 0 Why it doesn't says that I compiled the module with VC9 ? More info: Operating System: Windows7 x64 PHP: 5.3.3,TS,VC9 Ok, I found the solution: You must add a

Can't connect to MongoDB through PHP

早过忘川 提交于 2019-11-30 22:36:04
问题 I just wanted to take a look at Mongo-DB. But i just don't get it running. I've installed it with PECL and my phpinfo() tells me that the extension is loaded, but when i try to get a connection with $mongo = new Mongo(); I get this: Fatal error: Uncaught exception 'MongoConnectionException' with message ': Transport endpoint is not connected' Anybody have the same Problem? ... Or any Idea on this? 回答1: Please don't take this the wrong way, but have you actually got the server running? Only it

Where to find MAMP server components and Libraries

和自甴很熟 提交于 2019-11-30 19:44:52
I am trying to install pecl_http in MAMP php. I am getting the following errors. grep: /Applications/MAMP/bin/php/php5.5.10/include/php/main/php.h: No such file or directory grep: /Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_modules.h: No such file or directory grep: /Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: Did a research on that and found out we need MAMP server components and Libraries. After downloading this component, find the zip file corresponding to my version of PHP, extract it into a new directory

pdo dblib on centos 6.x

泪湿孤枕 提交于 2019-11-30 17:56:44
问题 I am trying to install dblib on CentOS release 6.5 (Final) 64bit. centos 6 does not have freetds so I had to get freetds from elsewhere. freetds-devel-0.91-2.1.x86_64.rpm . using pecl to download and instal PDO DBLIB but i get stuck at make. the error i receive is as follows. [root@rajesh PDO_DBLIB-1.0]# make /bin/sh /root/php/PDO_DBLIB-1.0/libtool --mode=compile cc -I/usr/include/php/ext -DPDO_DBLIB_FLAVOUR=\"freetds\" -I. -I/root/php/PDO_DBLIB-1.0 -DPHP_ATOM_INC -I/root/php/PDO_DBLIB-1.0

yum安装php7

巧了我就是萌 提交于 2019-11-30 17:54:40
yum安装php7 yum -y install php70w-devel php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-pdo.x86_64 php70w-mysqlnd php70w-fpm php70w-opcache php70w-pecl-redis php70w-pecl-mongo 来源: https://my.oschina.net/zfblog/blog/3114171