从源码编译Couchbase Server

虽然安装Couchbase Server的快捷方式显然是直接用deb安装包去安装,不过作为linux使用者,编译源码安装程序也是必备技能,而编译Couchbase Server还是有些麻烦的,所以我就在这里记录下我的方法,避免读者再走跟我一样的弯路了。

系统环境:Ubuntu 14.04 LTS

源码版本:2.2.0

Couchbase Server的安装依赖于许多其它通用组件,所以首先需要搭建环境。下述可能有所遗漏,总之得自己看编译时候的报错具体确定缺少什么,尤其是在checking阶段,很可能检测一些组件发现没找到就会直接停止报错,需要回溯报错去找需要安装的组件。

user@pc:~/ sudo apt-get install libicu-dev libsnappy-dev autoconf automake gcc-4.7 libevent-2.0.5 libv8-dev 

顺利的话,运行这行指令之后就已经搭建好环境了,之后就没什么需要注意的了,直接make也就行了。

需要运行Couchbase Server就执行install/bin/couchbase-server。


Couchbase官方关于源码编译的指导在这里,这个不需要翻墙,就是比较慢。

国外有一篇文章总结在SmartOS下的完整编译流程。不过需要翻墙,为了方便懒得翻墙的诸位,我这里就转载一下,如果解决了你的问题请在心中感谢原作者再狠狠吐槽阻碍科技进步的GFW。


Running Couchbase 2.1.1 on SmartOS

I assume most of my readers knows about my love to the Solaris operating system and its descendants such as SmartOS. I've been on vacation for a couple of weeks now, and during my vacation I noticed some comments on previous blog posts that people had tried to build Couchbase on their SmartOS system without success so I figured I should create a new blog post where I walked through the steps needed.

To make reproducible steps for people who are interested, I decided to ensure that the blog post includes all the steps needed (including creating the environment). The first thing we need to do is to log into our server and update the list of available datasets. I started off this morning by downloading  smartos-20130725T202435Z-USB.img.bz2 and  created a bootable USB stick and booted my server.

With my SmartOS server running the (as of today) latest bits I imported the dataset I was going to use for my build with the following command:

[root@smartos ~]#imgadm import 9eac5c0c-a941-11e2-a7dc-57a6b041988f

And created a the vm with the following setup:

[root@smartos ~]# cat | vmadm create
{
  "alias" : "couchbase",
  "autoboot": true,
  "brand": "joyent",
  "dns_domain" : "norbye.org",
  “resolvers” : [ "10.0.0.1" ],
  "image_uuid" : "9eac5c0c-a941-11e2-a7dc-57a6b041988f",
  "hostname" : "cbbuilder",
  "max_physical_memory": 4096,
  "nics": [
    {
      "nic_tag": "admin",
      "ip": "10.0.0.150",
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值