Installing couchbase on debian 8.6 error

Hello,

I’m trying to install couchbase since a couple of days. I’ve read plenty of other discussions (e.g. here) and can’t find a solution.

I tried to follow this tutorial and already tried different nodejs versions.

Here is was i get:

root@debFrank:/home/frank/WebstormProjects/DiagrammShare/Frank_TestChat# npm install couchbase
npm WARN package.json web-chat@1.0.0 No description
npm WARN package.json web-chat@1.0.0 No repository field.
npm WARN package.json web-chat@1.0.0 No README data
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
-
> couchbase@2.1.2 install /home/frank/WebstormProjects/DiagrammShare/Frank_TestChat/node_modules/couchbase
> prebuild --download

prebuild WARN install Prebuilt binaries for node version v7.0.0 are not available
make: Entering directory '/home/frank/WebstormProjects/DiagrammShare/Frank_TestChat/node_modules/couchbase/build'
  COPY ../deps/lcb/include/libcouchbase/libuv_io_opts.h
  COPY ../deps/lcb/include/libcouchbase/plugins/io/libuv/plugin-libuv.c
  COPY ../deps/lcb/include/libcouchbase/plugins/io/libuv/plugin-internal.h
  COPY ../deps/lcb/include/libcouchbase/plugins/io/libuv/libuv_compat.h
  CC(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/bc_cccp.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/bc_file.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/bc_http.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/bc_mcraw.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/confmon.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/http/http.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/http/http_io.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/jsparse/parser.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbht/lcbht.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/connect.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/ctx.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/iotable.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/ioutils.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/manager.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/protoctx.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/timer.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/mc/compress.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/mc/forward.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/mc/mcreq.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/mcserver/mcserver.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/mcserver/negotiate.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/netbuf/netbuf.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/cbflush.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/counter.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/durability-cas.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/durability-seqno.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/durability.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/get.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/observe-seqno.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/observe.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/touch.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/pktfwd.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/remove.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/stats.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/store.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/rdb/bigalloc.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/rdb/chunkalloc.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/rdb/libcalloc.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/rdb/rope.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/strcodecs/base64.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/strcodecs/url_encoding.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/vbucket/ketama.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/vbucket/vbucket.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/views/docreq.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/views/viewreq.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/bootstrap.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/callbacks.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/cntl.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/connspec.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/dump.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/getconfig.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/gethrtime.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/handler.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/hashset.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/hashtable.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/hostlist.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/instance.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/iofactory.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/legacy.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/list.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/logging.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/newconfig.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/nodeinfo.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/packetutils.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/retrychk.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/retryq.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/ringbuffer.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/settings.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/simplestring.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/timings.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/utilities.o
  CC(target) Release/obj.target/couchbase/deps/lcb/src/wait.o
  CXX(target) Release/obj.target/couchbase/deps/lcb/src/n1ql/n1ql.o
  CXX(target) Release/obj.target/couchbase/deps/lcb/src/n1ql/params.o
../deps/lcb/src/n1ql/params.cc: In function ‘lcb_error_t lcb_n1p_mutation_token(lcb_N1QLPARAMS*, const lcb_MUTATION_TOKEN*)’:
../deps/lcb/src/n1ql/params.cc:95:35: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘lcb_U64 {aka long unsigned int}’ [-Wformat=]
     sprintf(buf, "%llu", sv->uuid_);
                                   ^
  CC(target) Release/obj.target/couchbase/deps/lcb/plugins/io/select/plugin-select.o
  AR(target) Release/obj.target/deps/lcb/libcouchbase.a
  COPY Release/libcouchbase.a
  CC(target) Release/obj.target/httpparser/deps/lcb/contrib/http_parser/http_parser.o
  AR(target) Release/obj.target/deps/lcb/libhttpparser.a
  COPY Release/libhttpparser.a
  CC(target) Release/obj.target/genhash/deps/lcb/contrib/genhash/genhash.o
  AR(target) Release/obj.target/deps/lcb/libgenhash.a
  COPY Release/libgenhash.a
  CC(target) Release/obj.target/cjson/deps/lcb/contrib/cJSON/cJSON.o
  AR(target) Release/obj.target/deps/lcb/libcjson.a
  COPY Release/libcjson.a
  CC(target) Release/obj.target/cbsasl/deps/lcb/contrib/cbsasl/src/client.o
  CC(target) Release/obj.target/cbsasl/deps/lcb/contrib/cbsasl/src/common.o
  CC(target) Release/obj.target/cbsasl/deps/lcb/contrib/cbsasl/src/cram-md5/hmac.o
  CC(target) Release/obj.target/cbsasl/deps/lcb/contrib/cbsasl/src/cram-md5/md5.o
  AR(target) Release/obj.target/deps/lcb/libcbsasl.a
  COPY Release/libcbsasl.a
  CXX(target) Release/obj.target/snappy/deps/lcb/contrib/snappy/snappy-c.o
  CXX(target) Release/obj.target/snappy/deps/lcb/contrib/snappy/snappy-sinksource.o
  CXX(target) Release/obj.target/snappy/deps/lcb/contrib/snappy/snappy-stubs-internal.o
  CXX(target) Release/obj.target/snappy/deps/lcb/contrib/snappy/snappy.o
  AR(target) Release/obj.target/deps/lcb/libsnappy.a
  COPY Release/libsnappy.a
  CXX(target) Release/obj.target/jsoncpp/deps/lcb/contrib/lcb-jsoncpp/lcb-jsoncpp.o
  AR(target) Release/obj.target/deps/lcb/libjsoncpp.a
  COPY Release/libjsoncpp.a
  CXX(target) Release/obj.target/couchbase_impl/src/couchbase_impl.o
In file included from ../node_modules/nan/nan.h:182:0,
                 from ../src/couchbase_impl.h:40,
                 from ../src/couchbase_impl.cc:21:
../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)’:
../node_modules/nan/nan_maybe_43_inl.h:221:58: warning: ‘v8::MaybeLocal<v8::Object> v8::Array::CloneElementAt(v8::Local<v8::Context>, uint32_t)’ is deprecated (declared at /root/.node-gyp/7.0.0/include/node/v8.h:3055): Cloning is not supported. [-Wdeprecated-declarations]
   return array->CloneElementAt(GetCurrentContext(), index);
                                                          ^
In file included from ../node_modules/nan/nan_new.h:189:0,
                 from ../node_modules/nan/nan.h:188,
                 from ../src/couchbase_impl.h:40,
                 from ../src/couchbase_impl.cc:21:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)’:
../node_modules/nan/nan_implementation_12_inl.h:40:38: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated (declared at /root/.node-gyp/7.0.0/include/node/v8.h:4048): Pass an isolate [-Wdeprecated-declarations]
   return v8::BooleanObject::New(value).As<v8::BooleanObject>();
                                      ^
In file included from ../src/couchbase_impl.h:40:0,
                 from ../src/couchbase_impl.cc:21:
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:590:20: error: variable or field ‘AddGCEpilogueCallback’ declared void
       v8::Isolate::GCEpilogueCallback callback
                    ^
../node_modules/nan/nan.h:590:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCEpilogueCallback callback
       ^
../node_modules/nan/nan.h:591:18: error: expected primary-expression before ‘gc_type_filter’
     , v8::GCType gc_type_filter = v8::kGCTypeAll) {
                  ^
../node_modules/nan/nan.h:596:20: error: variable or field ‘RemoveGCEpilogueCallback’ declared void
       v8::Isolate::GCEpilogueCallback callback) {
                    ^
../node_modules/nan/nan.h:596:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCEpilogueCallback callback) {
       ^
../node_modules/nan/nan.h:601:20: error: variable or field ‘AddGCPrologueCallback’ declared void
       v8::Isolate::GCPrologueCallback callback
                    ^
../node_modules/nan/nan.h:601:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCPrologueCallback callback
       ^
../node_modules/nan/nan.h:602:18: error: expected primary-expression before ‘gc_type_filter’
     , v8::GCType gc_type_filter = v8::kGCTypeAll) {
                  ^
../node_modules/nan/nan.h:607:20: error: variable or field ‘RemoveGCPrologueCallback’ declared void
       v8::Isolate::GCPrologueCallback callback) {
                    ^
../node_modules/nan/nan.h:607:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCPrologueCallback callback) {
       ^
../node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../node_modules/nan/nan.h:1933:16: warning: ‘bool v8::Object::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’ is deprecated (declared at /root/.node-gyp/7.0.0/include/node/v8.h:2760): Use maybe version [-Wdeprecated-declarations]
     , attribute);
                ^
couchbase_impl.target.mk:143: recipe for target 'Release/obj.target/couchbase_impl/src/couchbase_impl.o' failed
make: *** [Release/obj.target/couchbase_impl/src/couchbase_impl.o] Error 1
make: Leaving directory '/home/frank/WebstormProjects/DiagrammShare/Frank_TestChat/node_modules/couchbase/build'
prebuild ERR! build error 
prebuild ERR! stack Error: `make` failed with exit code: 2
prebuild ERR! stack     at ChildProcess.onExit (/home/frank/WebstormProjects/DiagrammShare/Frank_TestChat/node_modules/couchbase/node_modules/prebuild/node_modules/node-gyp/lib/build.js:276:23)
prebuild ERR! stack     at emitTwo (events.js:106:13)
prebuild ERR! stack     at ChildProcess.emit (events.js:191:7)
prebuild ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
prebuild ERR! not ok 
prebuild ERR! build Error: `make` failed with exit code: 2
prebuild ERR! build     at ChildProcess.onExit (/home/frank/WebstormProjects/DiagrammShare/Frank_TestChat/node_modules/couchbase/node_modules/prebuild/node_modules/node-gyp/lib/build.js:276:23)
prebuild ERR! build     at emitTwo (events.js:106:13)
prebuild ERR! build     at ChildProcess.emit (events.js:191:7)
prebuild ERR! build     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "couchbase"
npm ERR! node v7.0.0
npm ERR! npm  v2.15.11
npm ERR! code ELIFECYCLE

npm ERR! couchbase@2.1.2 install: `prebuild --download`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the couchbase@2.1.2 install script 'prebuild --download'.
npm ERR! This is most likely a problem with the couchbase package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     prebuild --download
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs couchbase
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls couchbase
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/frank/WebstormProjects/DiagrammShare/Frank_TestChat/npm-debug.log

Maybe someone can help.
Best regards,
Frank

I think your best bet is to install libcouchbase from a source tarball (as covered in the docs) and then install the node SDK pointing it to your installed libcouchbase (also covered in the docs). If either of those fail on this platform, we can help with the specific failure.