amitkr / nodejs-db-informix

Infomix bindings for nodejs
MIT License
3 stars 3 forks source link

unable to install nodejs-db-informix. #15

Open amitkr opened 10 years ago

amitkr commented 10 years ago

Issue reported by @mikeseaversu


Hi amitkr,

Thanks for your reply. Below is my procedure to build and test nodejs-db-informix.

  1. Install npm, node.js
  2. $ npm install nodejs-db-informix

npm http GET https://registry.npmjs.org/nodejs-db-informix npm http 304 https://registry.npmjs.org/nodejs-db-informix npm http GET https://registry.npmjs.org/libuv/0.10.18 npm http GET https://registry.npmjs.org/pthread npm http 404 https://registry.npmjs.org/pthread npm WARN optional dep failed, continuing pthread@* npm http 404 https://registry.npmjs.org/libuv/0.10.18 npm WARN optional dep failed, continuing libuv@0.10.18 nodejs-db-informix@0.0.11 install /root/nodeMongo/node_modules/nodejs-db-informix node-gyp configure build make: Entering directory /root/nodeMongo/node_modules/nodejs-db-informix/build' make: Nothing to be done forall'. make: Leaving directory `/root/nodeMongo/node_modules/nodejs-db-informix/build' nodejs-db-informix@0.0.11 nodejs-db-informix

  1. $ node-gyp clean configure build

gyp info it worked if it ends with ok gyp info using node-gyp@0.13.0 gyp info using node@0.10.26 | linux | x64 gyp info spawn python gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/root/nodeMongo/node_modules/nodejs-db-informix/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/root/.node-gyp/0.10.26/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/0.10.26', gyp info spawn args '-Dmodule_root_dir=/root/nodeMongo/node_modules/nodejs-db-informix', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory /root/nodeMongo/node_modules/nodejs-db-informix/build' CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/binding.o CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/connection.o CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/events.o CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/exception.o CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/query.o CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/result.o CXX(target) Release/obj.target/informix_bindings/src/connection.o CXX(target) Release/obj.target/informix_bindings/src/informix.o CXX(target) Release/obj.target/informix_bindings/src/result.o CXX(target) Release/obj.target/informix_bindings/src/query.o CXX(target) Release/obj.target/informix_bindings/src/informix_bindings.o SOLINK_MODULE(target) Release/obj.target/informix_bindings.node SOLINK_MODULE(target) Release/obj.target/informix_bindings.node: Finished COPY Release/informix_bindings.node make: Leaving directory /root/nodeMongo/node_modules/nodejs-db-informix/build'

4 $ node-gyp rebuild

gyp info it worked if it ends with ok gyp info using node-gyp@0.13.0 gyp info using node@0.10.26 | linux | x64 gyp info spawn python gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/root/nodeMongo/node_modules/nodejs-db-informix/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/root/.node-gyp/0.10.26/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/0.10.26', gyp info spawn args '-Dmodule_root_dir=/root/nodeMongo/node_modules/nodejs-db-informix', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory /root/nodeMongo/node_modules/nodejs-db-informix/build' CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/binding.o CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/connection.o CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/events.o CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/exception.o CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/query.o CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/result.o CXX(target) Release/obj.target/informix_bindings/src/connection.o CXX(target) Release/obj.target/informix_bindings/src/informix.o CXX(target) Release/obj.target/informix_bindings/src/result.o CXX(target) Release/obj.target/informix_bindings/src/query.o CXX(target) Release/obj.target/informix_bindings/src/informix_bindings.o SOLINK_MODULE(target) Release/obj.target/informix_bindings.node SOLINK_MODULE(target) Release/obj.target/informix_bindings.node: Finished COPY Release/informix_bindings.node make: Leaving directory /root/nodeMongo/node_modules/nodejs-db-informix/build' gyp info ok

5 $ node tests/tests.js

Could not load default informix_bindings

This is what I did and I didn't find any error happen and no build log found. Could you please help me about this? Thanks

Xiang Su 苏翔 Informix Enablement Software Engineer IBM China Software Development Laboratory Tel:86-10-82452048 Mobile: 86-18612563831 Internet: suxbj@cn.ibm.com Address: Ring Building, # 28 Zhongguancun SW Park, ShangDi, Haidian District, Beijing 100193, P.R.China 地址:北京市海淀区东北旺西路8号,中关村软件园28号楼,IBM环宇大厦 邮 编:100193 CSDL website: http://w3.csdl.cn.ibm.com

From: Amit Kumar notifications@github.com To: amitkr/nodejs-db-informix nodejs-db-informix@noreply.github.com, Cc: Xiang BJ Su/China/IBM@IBMCN Date: 2014/03/18 17:27 Subject: Re: [nodejs-db-informix] Unable to install the module (#8)

hi @mikeseaversu, could you please open a new issue with more details? like build logs and command line outputs/logs? This issue is closed and no change will be made towards it.

cheers.

— Reply to this email directly or view it on GitHub.

amitkr commented 10 years ago

@mikeseaversu

That looks like a problem with your environment. Whats you NODE_PATH environment variable look like?

you're installing nodejs-db-informix into /root/nodeMongo/ so i'm assuming your NODE_PATH is /root/nodeMongo/node_modules/ ?

where are you running step 5 from? it must be run from nodejs-db-informix directory as it tries to require file nodejs-db-informix.js which in turn loads build/Release/informix_bindings again relative to nodejs-db-informix directory.

Also Step 5. node tests/tests.js That will not work anyway - although it should be able to connect to db. Use node tests/test.js instead. To run tests/tests.js you need nodeunit

HTH. cheers.