IBM / nodejs-idb-connector

A JavaScript (Node.js) library for communicating with Db2 for IBM i, with support for queries, procedures, and much more. Uses traditional callback-style syntax
MIT License
37 stars 22 forks source link

Pre-built binaries not found for idb-connector@1.0.10 and node@8.1.2 #28

Closed abmusse closed 6 years ago

abmusse commented 6 years ago

Original report by Christian Fornara (Bitbucket: cfornara, GitHub: Unknown).


Hello,

i try to test your project. https://bitbucket.org/litmis/nodejs-itoolkit/src/master/

I cloned the project, and made the npm install. I tried to start the project but it gives me an error:

Error: Can not find module 'idb-connector'

So I thought that the npm had not installed everything, I did: npm install --save idb-connector

but the result was:

#!javascript

node-pre-gyp ERR! Pre-built binaries not found for idb-connector@1.0.10 and node@8.1.2 (node-v57 ABI, unknown) (falling back to source compile with node-gyp)

C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector>if not defined npm_config_node_gyp (node "C:\Users\cfornara\AppData\Roaming\nvm\v8.1.2\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" clean )  else (node ""
 clean )

C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector>if not defined npm_config_node_gyp (node "C:\Users\cfornara\AppData\Roaming\nvm\v8.1.2\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-t
o-build --module=C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\lib\binding\Release\node-v57-ibmi-x64\db2ia.node --module_name=db2ia --module_path=C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\lib\binding\Re
lease\node-v57-ibmi-x64 --python=C:\Users\cfornara\.windows-build-tools\python27\python.exe --msvs_version=2015 )  else (node "" configure --fallback-to-build --module=C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\lib\binding\Release\n
ode-v57-ibmi-x64\db2ia.node --module_name=db2ia --module_path=C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\lib\binding\Release\node-v57-ibmi-x64 --python=C:\Users\cfornara\.windows-build-tools\python27\python.exe --msvs_version=2015 )

C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector>if not defined npm_config_node_gyp (node "C:\Users\cfornara\AppData\Roaming\nvm\v8.1.2\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" build --fallback-to-bu
ild --module=C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\lib\binding\Release\node-v57-ibmi-x64\db2ia.node --module_name=db2ia --module_path=C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\lib\binding\Releas
e\node-v57-ibmi-x64 )  else (node "" build --fallback-to-build --module=C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\lib\binding\Release\node-v57-ibmi-x64\db2ia.node --module_name=db2ia --module_path=C:\Users\cfornara\Progetti\nodejs-
itoolkit\test\node_modules\idb-connector\lib\binding\Release\node-v57-ibmi-x64 )
Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compilazione parallela, aggiungere l'opzione "/m".
  db2ia.cc
  dbconn.cc
  dbstmt.cc
  win_delay_load_hook.cc
c:\users\cfornara\progetti\nodejs-itoolkit\test\node_modules\idb-connector\src\db2ia\dbconn.h(11): fatal error C1083: Cannot open include file: 'sqlcli.h': No such file or directory (compiling source file ..\src\db2ia\db2ia.cc) [C:\Users\cfornara\Progetti\nodejs-
itoolkit\test\node_modules\idb-connector\build\db2ia.vcxproj]
c:\users\cfornara\progetti\nodejs-itoolkit\test\node_modules\idb-connector\src\db2ia\dbconn.h(11): fatal error C1083: Cannot open include file: 'sqlcli.h': No such file or directory (compiling source file ..\src\db2ia\dbstmt.cc) [C:\Users\cfornara\Progetti\nodejs
-itoolkit\test\node_modules\idb-connector\build\db2ia.vcxproj]
c:\users\cfornara\progetti\nodejs-itoolkit\test\node_modules\idb-connector\src\db2ia\dbconn.h(11): fatal error C1083: Cannot open include file: 'sqlcli.h': No such file or directory (compiling source file ..\src\db2ia\dbconn.cc) [C:\Users\cfornara\Progetti\nodejs
-itoolkit\test\node_modules\idb-connector\build\db2ia.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\cfornara\AppData\Roaming\nvm\v8.1.2\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\cfornara\\AppData\\Roaming\\nvm\\v8.1.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\cfornara\\Progetti\\nodejs-itoolkit\\test\\n
ode_modules\\idb-connector\\lib\\binding\\Release\\node-v57-ibmi-x64\\db2ia.node" "--module_name=db2ia" "--module_path=C:\\Users\\cfornara\\Progetti\\nodejs-itoolkit\\test\\node_modules\\idb-connector\\lib\\binding\\Release\\node-v57-ibmi-x64"
gyp ERR! cwd C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector
gyp ERR! node -v v8.1.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd build --fallback-to-build --module=C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\lib\binding\Release\node-v57-ibmi-x64\db2ia.node --module_name=db2ia --module_path=C:\Users
\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\lib\binding\Release\node-v57-ibmi-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:897:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\cfornara\\Progetti\\nodejs-itoolkit\\test\\node_modules\\idb-connector\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector
node-pre-gyp ERR! node -v v8.1.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd build --fallback-to-build --module=C:\Users\cfornara\Progetti\nodejs-itoolkit\test\node_modules\idb-connector\lib\binding\Release\node-v57-ibmi-x64\db2ia.node --module_name=db2ia --module_path=C:\Users\cfornara\Progetti\nodejs-itool
kit\test\node_modules\idb-connector\lib\binding\Release\node-v57-ibmi-x64' (1)
npm WARN nodejs-itoolkit-test@1.0.0 No description

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! idb-connector@1.0.10 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the idb-connector@1.0.10 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\cfornara\AppData\Roaming\npm-cache\_logs\2018-05-02T13_15_47_121Z-debug.log

it looks like idb-connector can not be installed with the latest versions of node.js

You have some idea about it?

Regards

abmusse commented 6 years ago

Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).


Hello Christian,

This DB2 connector only supports the PowerPC(32bit/64bit) architectures currently. We do not build it for Win32/Win64 platforms. So the available pre-built binaries are only -->

abmusse commented 6 years ago

Original comment by Christian Fornara (Bitbucket: cfornara, GitHub: Unknown).


Hello again,

the npm try to download this file: node-pre-gyp ERR! Tried to download(404): https://bitbucket.org/litmis/nodejs-idb-connector/downloads/db2ia-v1.0.10-node-v57-ibmi-x64.tar.gz

i check in your repository but they are not present.