Npm install aerospike fails in rhel 6.5


#1

make: Entering directory `/home/admin/Documents/Projects/TDAdmin/TD-Admin/node_modules/aerospike/build’ ACTION binding_gyp_aerospike_client_c_target_run_scripts_aerospike_client_c_sh aerospike-client-c/lib/libaerospike.a which: no lsb_release in (/home/admin/.nvm/v0.10.36/lib/node_modules/npm/bin/node-gyp-bin:/home/admin/Documents/Projects/TDAdmin/TD-Admin/node_modules/aerospike/node_modules/.bin:/home/admin/Documents/Projects/TDAdmin/TD-Admin/node_modules/.bin:/home/admin/.nvm/v0.10.36/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/admin/bin) info: downloading ‘http://www.aerospike.com/download/client/c/latest/artifact/el6’ to ‘/home/admin/Documents/Projects/TDAdmin/TD-Admin/node_modules/aerospike/aerospike-client-c/package/aerospike-client-c.tgz’ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13.8M 100 13.8M 0 0 104k 0 0:02:16 0:02:16 --:–:-- 85492 info: extracting ‘aerospike-client-c-3.0.94.el6.x86_64/aerospike-client-c-devel-3.0.94-1.el6.x86_64.rpm’ from 'aerospike-client-c.tgz’ info: extracting files from 'aerospike-client-c-3.0.94.el6.x86_64/aerospike-client-c-devel-3.0.94-1.el6.x86_64.rpm’ 11677 blocks

CHECK [✓] /home/admin/Documents/Projects/TDAdmin/TD-Admin/node_modules/aerospike/aerospike-client-c/package/usr/lib/libaerospike.a [✓] /home/admin/Documents/Projects/TDAdmin/TD-Admin/node_modules/aerospike/aerospike-client-c/package/usr/include/aerospike/aerospike.h [✓] /home/admin/Documents/Projects/TDAdmin/TD-Admin/node_modules/aerospike/aerospike-client-c/package/opt/aerospike/client/sys/udf/lua/aerospike.lua

TOUCH Release/obj.target/aerospike-client-c.stamp CXX(target) Release/obj.target/aerospike/src/main/aerospike.o make: g++: Command not found make: *** [Release/obj.target/aerospike/src/main/aerospike.o] Error 127 make: Leaving directory /home/admin/Documents/Projects/TDAdmin/TD-Admin/node_modules/aerospike/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/admin/.nvm/v0.10.36/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Linux 2.6.32-431.el6.x86_64 gyp ERR! command “node” “/home/admin/.nvm/v0.10.36/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” "rebuild" gyp ERR! cwd /home/admin/Documents/Projects/TDAdmin/TD-Admin/node_modules/aerospike gyp ERR! node -v v0.10.36 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok npm ERR! Linux 2.6.32-431.el6.x86_64 npm ERR! argv “node” “/home/admin/.nvm/v0.10.36/bin/npm” “install” "aerospike" npm ERR! node v0.10.36 npm ERR! npm v2.3.0 npm ERR! code ELIFECYCLE

npm ERR! aerospike@1.0.26 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the aerospike@1.0.26 install script ‘node-gyp rebuild’. npm ERR! This is most likely a problem with the aerospike package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls aerospike npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/admin/Documents/Projects/TDAdmin/TD-Admin/npm-debug.log


#2

Hi,

Thank you for your post. Will you please provide some context about your inquiry and clearly state your question(s)?

Regards,

Maud


#3

Hi Daniel,

g++ library is required to compile the Aerospike node.js client . Your system does not have g++ installed. Could you install g++ and give a shot?

Gayathri.K


#4

I can confirmed is solved now! Thanks