PECL

CentOS 6 安装 gearman 和它的 php 扩展

泪湿孤枕 提交于 2019-11-28 18:23:37
0. PHP 中的 gearman 扩展 我的服务器使用的是 ius 的 php5.5 ,如果你使用其他源和版本,请自行替换部分包名 1. 安装 epel 和 ius 源 yum install http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/epel-release-6-5.noarch.rpm yum install http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm 2. 安装 gearman ,用于运行 gearman 服务 yum install gearmand 3. 安装 libgearman 和 libgearman-devel ,用于编译 php 扩展 yum install libgearman libgearman-devel 4. 安装 pecl 和其他依赖 yum install php-pear php55u-devel 5. 安装 php 扩展 pecl install gearman 6. 修改配置文件 /etc/php.ini 增加 extension=gearman.so You should add "extension

Howto: Install Imagick (for php) on Ubuntu 11.10

无人久伴 提交于 2019-11-28 16:47:52
I'm attempting to install ImagicK as its required for a Yii Extension I want to use for my project. I've checked around and followed a few different suggestions but nothing that has worked so far, ultimately the framework extension is still throwing me an error (Must have ImagicK installed). I've tried things like: sudo apt-get update sudo apt-get install imagick-php5 .. etc as well as the PECL install which ends up throwing me the following error: Checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config

Install PECL on Mac OS X 10.6

守給你的承諾、 提交于 2019-11-28 16:14:02
Is there any way to install PHP:s PECL handler on Mac OS X 10.6, to be used with the bundled PHP? numberwhun Better late than never, but if you are like me and installed PHP directly from php.net (instead of using something like Homebrew or Port, then you can simply follow the following link to install Pear and PECL: http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/ We need PEAR! For some reason, it's not set up ready to on Lion, but the install phar file is here, so we just need to run it. cd /usr/lib/php sudo php install-pear-nozlib.phar Edit: /etc/php.ini and find the line: ;

Error while installing mongo driver for PHP on amazon linux

被刻印的时光 ゝ 提交于 2019-11-28 04:25:27
问题 I tried to install the mongodb driver for PHP on Amazon Linux. While running sudo pecl install mongo , I get the error message: fatal error: openssl/evp.h: No such file or directory #include <openssl/evp.h> ^ compilation terminated. make: *** [io_stream.lo] Error 1 ERROR: `make' failed PEAR Version: 1.9.5 PHP Version: 5.3.29 I installed gcc which helped me progress further with the install till this error. The best Guide I was able to find was here: http://jonathanhui.com/install-mongodb

How to update timezonedb in PHP (updating timezones info)?

六眼飞鱼酱① 提交于 2019-11-28 00:02:39
phpinfo() shows our system to be using ""Olson" Timezone Database Version 2010.3". I think that is now out of date, but can't locate an authoritative location which can confirm that. (a) Can I update the timezones info for PHP as a whole? (b) If so, how do I update this? I saw the instructions at http://www.electrictoolbox.com/correct-php-timezone/ where it says that, after installing the appropriate module, it says I have to: You should add "extension=timezonedb.so" to php.ini Do we need to do that? Shouldn't PHP be automatically using the correct file? as far as I know the Timezone DB (TDB)

Pear - succeeded, but it is not a valid package

自作多情 提交于 2019-11-27 16:00:33
问题 During a pecl package installation, i got the error, Download of "pecl/pecl_http" succeeded, but it is not a valid package archive Error: cannot download "pecl/pecl_http" This error is coming for all the packages. So i tried the solution given here, http://cweiske.de/tagebuch/pear-php-5.5.htm. But it is not working. And i don't have any other clue on this. It would be really helpful if someone explains what exactly the problem is. Please help. 回答1: This bug commonly affects systems upgraded

sudo pecl install apc returns error

孤者浪人 提交于 2019-11-27 13:24:11
问题 I run the command: sudo pecl install apc The file gets downloaded, the configuration succeeds, then make is launched and I get the following error. /usr/include/php5/ext/pcre/php_pcre.h:29: fatal error: pcre.h: No such file or directory Is there a way to fix it? 回答1: PCRE is a dependency for installing APC. You can install it pretty quick with yum install pcre-devel or apt-get install libpcre3-dev once it's installed, re-run sudo pecl install apc 回答2: sudo apt-get install libpcre3-dev is the

Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3)

倖福魔咒の 提交于 2019-11-27 11:01:47
So it looks like the new 'System Integrity Protection' lockdown of /usr (among other directories) makes pear and pecl a non-starter. Has anyone found a workaround short of disabling it? There's a much easier way — no need to disable SIP or download your own copy: sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin You shouldn't install binaries into system /usr , use /usr/local instead. The pecl and pear commands should come along with PHP when installing via Homebrew . Here is the example installing PHP with the latest Homebrew: brew install php or the

$PHP_AUTOCONF errors on mac os x 10.7.3 when trying to install pecl extensions

一笑奈何 提交于 2019-11-27 10:14:13
I am trying to setup my machine with pecl_http and memcache and in both cases, I get similar errors. This is on MAC OS X 10.7.3 (lion) and I also have XCODE installed on it. I also installed Zend Server community edition before running these commands and have CFLAGS='-arch i386 -arch x86_64' environment variables set. So please help with what I need to do 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

Howto: Install Imagick (for php) on Ubuntu 11.10

微笑、不失礼 提交于 2019-11-27 09:56:12
问题 I'm attempting to install ImagicK as its required for a Yii Extension I want to use for my project. I've checked around and followed a few different suggestions but nothing that has worked so far, ultimately the framework extension is still throwing me an error (Must have ImagicK installed). I've tried things like: sudo apt-get update sudo apt-get install imagick-php5 .. etc as well as the PECL install which ends up throwing me the following error: Checking ImageMagick MagickWand API