Can't install couchbase 1.3.13 gem on Linux

253 views
Skip to first unread message

Dump Hole

unread,
Jun 14, 2015, 12:57:51 AM6/14/15
to couc...@googlegroups.com
And I am pretty sure Ubuntu in general is affected too.

Installed the latest libcouchbase

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



shell> dpkg -l '*couchbase*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version              Architecture         Description
+++-===============================-====================-====================-====================================================================
ii  couchbase-server                3.0.1                amd64                Couchbase Server
ii  libcouchbase-dbg:amd64          2.5.0-1              amd64                library for the Couchbase protocol, debug symbols
ii  libcouchbase-dev:amd64          2.5.0-1              amd64                library for the Couchbase protocol, development files
un  libcouchbase1-bin               <none>               <none>               (no description available)
un  libcouchbase2                   <none>               <none>               (no description available)
ii  libcouchbase2-bin               2.5.0-1              amd64                library for the Couchbase protocol
ii  libcouchbase2-core:amd64        2.5.0-1              amd64                library for the Couchbase protocol, core files
ii  libcouchbase2-libev:amd64       2.5.0-1              amd64                library for the Couchbase protocol (libev backend)
ii  libcouchbase2-libevent:amd64    2.5.0-1              amd64                library for the Couchbase protocol (libevent backend)

Sergey Avseyev

unread,
Jun 14, 2015, 1:10:14 AM6/14/15
to Couchbase Google Group
Hi

On Sun, Jun 14, 2015 at 7:57 AM, Dump Hole <dumpst...@gmail.com> wrote:
> And I am pretty sure Ubuntu in general is affected too.

Everything is okay on Fedora and Centos. I'm checking debian packages
now. I will back soon

Sergey Avseyev

unread,
Jun 14, 2015, 1:28:27 AM6/14/15
to Couchbase Google Group
Verified on official ubuntu/trusty64 clean virtualbox image,
everything works correctly with ruby 2.2.0 from rvm

Could you post /home/alnite/.rvm/gems/ruby-2.2.0/extensions/x86_64-linux/2.2.0/couchbase-1.3.13/mkmf.log
and also output of dpkg -L libcouchbase-dev

On Sun, Jun 14, 2015 at 7:57 AM, Dump Hole <dumpst...@gmail.com> wrote:
> --
> You received this message because you are subscribed to the Google Groups
> "Couchbase" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to couchbase+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Dump Hole

unread,
Jun 14, 2015, 7:54:38 PM6/14/15
to couc...@googlegroups.com

Dump Hole

unread,
Jun 14, 2015, 7:56:04 PM6/14/15
to couc...@googlegroups.com
Try these if links didnt work.  Somehow I got a blank page.

dpkg -L libcouchbase-dev
https://gist.github.com/anonymous/3cac0dee75155f3a56f9

mkmf.log
https://gist.github.com/anonymous/c5883ca17e78ed6449a7

Sergey Avseyev

unread,
Jun 15, 2015, 1:52:17 AM6/15/15
to Couchbase Google Group
Do you have some other installation of libcouchbase?

What does this print

find / -name couchbase.h 2>/dev/null

Dump Hole

unread,
Jun 17, 2015, 1:39:06 AM6/17/15
to couc...@googlegroups.com
/usr/local/include/libcouchbase/couchbase.h
/usr/include/libcouchbase/couchbase.h

It looks like there are duplicates.

Sergey Avseyev

unread,
Jun 17, 2015, 6:58:42 AM6/17/15
to Couchbase Google Group
Yes, just remove everything from /usr/local and retry

Dump Hole

unread,
Jun 18, 2015, 3:23:28 AM6/18/15
to couc...@googlegroups.com
Works! :D

Thanks, Sergey!

:thumbsup:
Reply all
Reply to author
Forward
0 new messages