Cannot make couchbase node.js client working under CenOS 6.5.
Here is the error when I start my nodejs process:
/opt/piiLearningServer/node_modules/couchbase/lib/binding.js:37
throw new Error(‘Failed to locate couchnode native binding’);
^
Error: Failed to locate couchnode native binding
at Object. (/opt/piiLearningServer/node_modules/couchbase/lib/binding.js:37:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/opt/piiLearningServer/node_modules/couchbase/lib/connection.js:6:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
error: Forever detected script exited with code: 8
If I look into /opt/piiLearningServer/node_modules/couchbase/lib/binding.js, I see that it is trying to load …/prebuilt/win/x64/couchbase_impl … is it not a window lib; should I get a nodejs.SDK for centos???
if (!couchnode) {
// Try to load prebuilt windows binaries
if (process.arch === ‘x64’) {
couchnode = tryLoadBinding(’…/prebuilt/win/x64/couchbase_impl’);
} else if (process.arch === ‘ia32’) {
couchnode = tryLoadBinding(’…/prebuilt/win/ia32/couchbase_impl’);
}
}