I am trying to build the hello world c++ addon for node js. Both node.js and node-gyp seem have been installed successfully into a redhat linux. However when I ran "node-gyp configure", it gave the following error. I failed to get any insightful information by gooling as well as from the wiki page. Can you please kindly advise?
Thanks in advance.
~/examples/node.js/my_node_addon-1[13:14]% node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp\@0.10.10
gyp info using node\@0.10.18 | linux | x64
gyp ERR! configure error
gyp ERR! stack Error: Command failed: python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:637:15)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at maybeClose (child_process.js:735:16)
gyp ERR! stack at Socket.<anonymous> (child_process.js:948:11)
gyp ERR! stack at Socket.EventEmitter.emit (events.js:95:17)
gyp ERR! stack at Pipe.close (net.js:466:12)
gyp ERR! System Linux 2.6.18-194.32.1.el5
gyp ERR! command "node" "/work/dengf/conf/bin/node-gyp" "configure"
gyp ERR! cwd /home/dengf/examples/node.js/my_node_addon
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
But when I run python alone it loads the shared lib just fine:
~/examples/node.js/my_node_addon-1[13:14]% python -V
Python 2.7.3