Skip to content


Subversion checkout URL

You can clone with
Download ZIP


gem install couchbase raises error #2966

weemanjz opened this Issue · 5 comments

4 participants


When I'm trying to install couchbase gem I get the following error

rubinius 2.2.5 (2.1.0 e543ba3 2014-02-08 JI) [x86_64-linux-gnu]
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux


I think rubinius does not support MRI c-extension gems by default they need to be modified.


Most C extensions work out of the box, but looks like this gem uses something we haven't implemented yet.


The following snippet from the log seems to be the culprit:

gethrtime.c: In function ‘gethrtime’:
gethrtime.c:86:5: warning: implicit declaration of function ‘clock_gettime’ [-Wimplicit-function-declaration]
gethrtime.c:86:23: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
gethrtime.c:86:23: note: each undeclared identifier is reported only once for each function it appears in
In file included from /home/weeman/.rvm/rubies/rbx-2.2.5/vm/include/capi/ruby/backward/st.h:2:0,
                 from couchbase_ext.h:22,
                 from gethrtime.c:18:

Does this still occur when using Rubinius 2.5.2?


This is caused by the following:

This can probably be solved by adding a #define HAVE_TYPE_ST_INDEX_T 1 somewhere in our C CAPI.

@YorickPeterse YorickPeterse added C API and removed Needs feedback labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.