Cannot make couchbase node.js SDK working under CenOS 6.5

Hi guys,
I had similar problem on Ubuntu. The problem is that couchbase_impl can’t be compiled. To solve the problem, I’ve added “node-gyp”: “~0.11.0” to the dependencies in package.json and then run “npm update”. Then I’ve installed the gcc library - “sudo apt-get install build-essential g++” .Finally I had to rebuild the couchbase client.
cd path_to_nodejs_project/node_modules/coucbase/
node-gyp clean
node-gyp configure
node-gyp build

This solved my problem.
Cheers Kris