CouchBase + PHP 安装与配置

栏目: PHP · Linux · IT技术 · 发布时间: 7年前

内容简介:CouchBase + PHP 安装与配置

CouchBase + PHP 安装与配置

安装 CouchBase

安装方法:

pecl install couchbase

报错:

checking for libcouchbase in default path... not found
configure: error: Please reinstall the libcouchbase distribution -
                 libcouchbase.h should be <libcouchbase-dir>/include and
                 libcouchbase.a should be in <libcouchbase-dir>/lib
ERROR: `/tmp/pear/temp/couchbase/configure --with-php-config=/usr/local/php/bin/php-config' failed

报错解决方法,安装 libcouchbase 扩展依赖

wget -O/etc/yum.repos.d/couchbase.repo http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo

yum install -y libcouchbase-devel

安装完依赖扩展后,重新安装 couchbase 即可。

安装 CouchBase php 扩展

pecl search couchbase

重启 php-fpm 服务即可。


以上所述就是小编给大家介绍的《CouchBase + PHP 安装与配置》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Algorithms for Image Processing and Computer Vision

Algorithms for Image Processing and Computer Vision

Parker, J. R. / 2010-12 / 687.00元

A cookbook of algorithms for common image processing applications Thanks to advances in computer hardware and software, algorithms have been developed that support sophisticated image processing with......一起来看看 《Algorithms for Image Processing and Computer Vision》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

MD5 加密
MD5 加密

MD5 加密工具