shell> wget http://packages.couchbase.com/clients/c/couchbase-csdk-setup
shell> sudo perl couchbase-csdk-setup
Install gem
shell> gem install couchbase -v 1.3.13
Fetching: couchbase-1.3.13.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing couchbase:
ERROR: Failed to build gem native extension.
/home/alnite/.rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20150613-30796-1rgcuo2.rb extconf.rb
checking for lcb_iops_wire_bsd_impl2(NULL, 0) in -lcouchbase... yes
checking for mach/mach_time.h... no
checking for stdint.h... yes
checking for sys/time.h... yes
checking for fcntl.h... yes
checking for sys/socket.h... yes
checking for errno.h... yes
checking for st_index_t... yes
checking for clock_gettime()... yes
checking for gettimeofday()... yes
checking for QueryPerformanceCounter()... no
checking for gethrtime()... no
checking for rb_hash_lookup2()... yes
checking for rb_thread_fd_select()... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl()... yes
checking for poll() in poll.h... yes
checking for ppoll() in poll.h... yes
checking for rb_fiber_yield()... yes
creating couchbase_config.h
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling version.c
In file included from couchbase_ext.h:56:0,
from version.c:18:
/usr/include/libcouchbase/n1ql.h:203:1: error: unknown type name ‘lcb_SYNCTOKEN’
lcb_n1p_synctoken(lcb_N1QLPARAMS *params, const lcb_SYNCTOKEN *st);
^
make: *** [version.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/alnite/.rvm/gems/ruby-2.2.0/gems/couchbase-1.3.13 for inspection.
Results logged to /home/alnite/.rvm/gems/ruby-2.2.0/extensions/x86_64-linux/2.2.0/couchbase-1.3.13/gem_make.out