CouchBase + PHP 安装与配置

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

内容简介: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 安装与配置》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

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

Iterative Methods for Sparse Linear Systems, Second Edition

Iterative Methods for Sparse Linear Systems, Second Edition

Yousef Saad / Society for Industrial and Applied Mathematics / 2003-04-30 / USD 102.00

Tremendous progress has been made in the scientific and engineering disciplines regarding the use of iterative methods for linear systems. The size and complexity of linear and nonlinear systems arisi......一起来看看 《Iterative Methods for Sparse Linear Systems, Second Edition》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器