How I am trying to deploy in an AIX environment, using the library oracledb
for node.js
, I get an error of not being able to load the library, within my node_modules
if this library and I have the instantclient of oracle, I show the error.
throw new Error(nodbUtil.getErrorMessage('NJS-045', nodeInfo));
Error : NJS-045: can not load the oracledb add-on binary for Node.js 8.9.4 (aix, ppc64)
Can not load /opt/IBM/nodeismael/bin/node_modules/oracledb/build/Release/oracledb.node 0509-022 Can not load module /opt/IBM/nodeismael/bin/node_modules/oracledb/build/Release/oracledb.node. 0509-026 System error: Can not run a file that does not have a valid format.
Node-oracledb installation instructions: link
You must have 32-bit Oracle client libraries in your operating system library search path.
If you do not have Oracle Database on this computer, then install an Instant Client Basic or Basic Light package from:
at Object. (/opt/IBM/nodeismael/bin/node_modules/oracledb/lib/oracledb.js:68:13)
at Module._compile (module.js: 643: 30)
at Object.Module._extensions..js (module.js: 654: 10)
at Module.load (module.js: 556: 32)
at tryModuleLoad (module.js: 499: 12)
at Function.Module._load (module.js: 491: 3)
at Module.require (module.js: 587: 17)
at require (internal / module.js: 11: 18)
at Object. (/opt/IBM/nodeismael/bin/node_modules/oracledb/index.js:1:80)
at Module._compile (module.js: 643: 30)
**** NOTE: this server does not have Internet access.