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,
Does this still occur when using Rubinius 2.5.2?
There is a different error now:
This is caused by the following: https://github.com/couchbase/couchbase-ruby-client/blob/1d17825f0352f42ccc59f17ab3003d349807fccb/ext/couchbase_ext/couchbase_ext.h#L77-L79
This can probably be solved by adding a #define HAVE_TYPE_ST_INDEX_T 1 somewhere in our C CAPI.
#define HAVE_TYPE_ST_INDEX_T 1