Comments (32)
0.12 is a couple of weeks out and we don't yet support it. Not sure if it is just changes in our code required or some upgrade required in node-gyp too (which we depend on).
from node-ibm_db.
Are there plans to support it in the future and if so what is the expected time frame?
from node-ibm_db.
I will spend some time on it this week and will try to update our package soon.
from node-ibm_db.
It turns out that it is a significant breaking change and our entire C/C++ code has to be re-written. We will probably have to rebase ourselves on nan, so that for future such breaking changes, we depend on nan rather than requiring a rewrite ourselves. Thus this seems nothing short of 2-3 months
from node-ibm_db.
It is disappointing that the API changes have so drastically complicated the upgrade process. I appreciate your efforts and will keep checking back.
In node.js 0.12 I am most looking forward to its native support for Promises.
from node-ibm_db.
Me 2! waiting for it. Thanks
from node-ibm_db.
Hi! is there any estimate when support for node 0.12 will be ready? Thanks in advance!
from node-ibm_db.
the v0.12.0 support is mostly ready. It is available in the v12_support_with_nan branch. U can install this branch via ''npm install git+https://[email protected]/ibmdb/node-ibm_db.git#v12_support_with_nan". Please give it a spin and provide your feedback, then we can release it
from node-ibm_db.
Thanks @mariobriggs I'll be testing it using Ubuntu, Ill let you know how it works. thanks and good work!
from node-ibm_db.
@mariobriggs : Does the new ibmdb module work with any particular io.js version?
I'm still using the 64 bit version of node.js v0.10.36 to use the ibmdb module (which works great by the way).
At the moment, I'm a little confused as to what my next node upgrade should be due to the recent node fork.
The news I've read implies that there will be an organization called the Node Foundation that will ultimately merge the two projects. Until then, should I go ahead and upgrade to node.js v0.12? I would be curious to know your thoughts on this matter, as it relates to the ibmdb module.
from node-ibm_db.
@Lonniebiz Continue to use node.js v0.10.36 for some more time as node-ibm_db does not support v0.12 as of now. We are working on a separate branch https://github.com/ibmdb/node-ibm_db/tree/v12_support_with_nan for it. If you want, try it. It may have some issues. By end of June, we targeted to merge this v12_support_with_nan branch to master. After that you can use node.js v0.12. Thanks.
from node-ibm_db.
Just note that the package.json file needs to specify and strict the engine depend on only 10.x version if 0.12.x is not supported yet
Thanks.
from node-ibm_db.
@mariobriggs Im trying to install v12 branch, but keep getting this error:
In file included from ../src/odbc.cpp:25:0:
../src/odbc.h:30:21: fatal error: sqlcli1.h: No such file or directory
#include <sqlcli1.h>
^
compilation terminated.
make: *** [Release/obj.target/odbc_bindings/src/odbc.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.13.0-49-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "--IBM_DB_HOME=/home/juan/sqllib" "--IBM_DB_HOME_WIN=%IBM_DB_HOME%" "--IS_DOWNLOADED=false"
gyp ERR! cwd /home/juan/Desktop/db2Real/node_modules/ibm_db
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
]
Any idea what could be failing?
from node-ibm_db.
@smartmouse updated package.json. Thanks.
from node-ibm_db.
@juancarloscancela I installed node 0.12. on my Mac and installed ibm_db and also connected to DB2 successfully.
I am not sure how you are installing (have you used git clone ?)... you should use npm install only
and should see the message about dwonloading CLI successfully....
npm install git+https://[email protected]/ibmdb/node-ibm_db.git#v12_support_with_nan
\
> [email protected] install /Users/mbriggs/work/node/mac/node_modules/ibm_db
> node installer/driverInstall.js
Downloading DB2 ODBC CLI Driver from http://public.dhe.ibm.com/ibmdl/......
Download and extraction of DB2 ODBC CLI Driver completed successfully …
Also, you'll not see above message "Downloading DB2 ODBC CLI Driver ...." if you have set the environment variable IBM_DB_HOME=/home/juan/sqllib to point out an already installed version of db2 client or server in your system. In that case, can you check file /home/juan/sqllib/include/sqlcli1.h exist or not?
Thanks.
from node-ibm_db.
Hey! Trying to install v12 as well, but getting this error:
Downloading DB2 ODBC CLI Driver from http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip...
events.js:85
throw er; // Unhandled 'error' event
^
Error: ENOENT, open 'C:\Users\Alexey\WebStrom\project\node_modules\ibm_db\build.zip'
at Error (native)
Is there any known workaround/fix for this?
from node-ibm_db.
@achurak Yes, v12 branch is not working on windows. Issue is with binding.gyp file. There is no known workaround for it yet. We are working on it.
from node-ibm_db.
@bimalkjha Thanks for the prompt reply! I'll try to get this working on Ubuntu then.
from node-ibm_db.
Hi @bimalkjha Sorry for not answer before! Just wanted to say that the v12 branch is working for me right now. Though i needed to move DB2 server from my host, to a separate virtual machine, since for some reason client db2 driver collide with it (IBM_DB_HOME is set in any case, server or client, so as in my case i had the server installed, during npm install client driver installation is bypassed, and probably some client specific libraries are not installed). Anyway, just wanted to share that the code is working.
Thanks and good job!
from node-ibm_db.
Now, v12 branch is working well on Linux, Mac and Windows 64Bit. You can install it using npm install git+https://[email protected]/ibmdb/node-ibm_db.git#v12_support_with_nan
command. Please try it and let us know if you face any issue. Thanks.
from node-ibm_db.
I am running command in window 64 bit: npm install git+https://[email protected]/ibmdb/node-ibm_db.git#v12_support_with_nan
But got error:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "git+https://[email protected]/ibmdb/node-ibm_db.git#v12_support_with_nan"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! Cannot read property 'trim' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
Any ideas? Thanks in advance.
from node-ibm_db.
I'm running 64-bit Windows 7 and can successfully install the v12 branch using: git+https://[email protected]/ibmdb/node-ibm_db.git#v12_support_with_nan
However, I still get the binding.js error seen by others. Here's the cmd output:
C:\[redacted path]\node_modules\ibm_db\node_modules\bindings\bindings.js:79
---throw e
-------^
Error: The specified procedure could not be found.
C:[redacted path]\node_modules\ibm_db\build\Release\odbc_bindings.node
---at Module.load (module.js:356:32)
---at Function.Module._load (module.js:312:12)
---at Module.require (module.js:364:17)
---at require (module.js:380:17)
---at bindings (C:\Users\IBM_ADMIN\Documents\lee-test\saslab1\node_modules\ibm_db\node_modules\bindings\bindings.js: 74:15)
---at Object.<anonymous> (C:\[redacted path]\node_modules\ibm_db\lib\odbc.js:27:31)
---at Module._compile (module.js:456:26)
---at Object.Module._extensions..js (module.js:474:10)
---at Module.load (module.js:356:32)
---at Function.Module._load (module.js:312:12)
from node-ibm_db.
@jeden25 can you confirm the availability of files node_modules\ibm_db\build\Release\odbc_bindings.node or node_modules\ibm_db\build.zip?
from node-ibm_db.
@manizhou "npm ERR! Cannot read property 'trim' of undefined" -- it seems npm issue. Can you get latest node v0.12.4 and try.
from node-ibm_db.
@bimalkjha I can confirm node_modules\ibm_db\build\Release\odbc_bindings.node
from node-ibm_db.
@jeden25 Please run following commands on command prompt and share the output:
cd
mkdir install
cd install
node --version
npm install git+https://[email protected]/ibmdb/node-ibm_db.git#v12_support_with_nan
cd node_modules\ibm_db
node testfile.js
from node-ibm_db.
Turns out, I'm a fool. Wrong node version. Thanks for your help bimalkjha.
from node-ibm_db.
v12_support_with_nan branch got merged to master as ibm_db version 0.0.10. Now, we can get it by just running npm install ibm_db
command or npm install git+https://[email protected]/ibmdb/node-ibm_db.git
command.
To use [email protected]
on Windows 64bit, you should install node v0.12.4. The native library build/Release/odbc_bindings.node may fail to load with older version of node on ntx64. Other platforms has no such limitation.
from node-ibm_db.
I am using nvm to have node v0.12.4, but got below errors when npm install ibm_db:
npm install ibm_db
[email protected] install C:\Users[redacted path]\nvm\v0.12.4\node_modules\ibm_db
node installer/driverInstall.js
'node' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Users[redacted path]\nvm\v0.12.4\node.exe" "C:\Users[redacted path]\nvm\v0.12.4\node_modules\npm\bin\npm-cli.js" "install" "ibm_db"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node installer/driverInstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node installer/driverInstall.js'.
npm ERR! This is most likely a problem with the ibm_db package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node installer/driverInstall.js
npm ERR! You can get their info via:
npm ERR! npm owner ls ibm_db
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users[redacted path]\nvm\v0.12.4\npm-debug.log
Thanks in advance for the help.
from node-ibm_db.
@manizhou 'node' is not recognized as an internal or external command,
is from windows command prompt and command prompt is not able to find node
in your PATH system environment variable.
Could you check the command node --version
is working for you or not?
from node-ibm_db.
@bimalkjha, thanks for your quick response. PATH is OK, everything starts working properly after I reboot my computer. So exciting today I finally connected to DB2 in windows in protractor which will help a lot in our automation testing. Thanks for the contribution and hard work.
from node-ibm_db.
@manizhou Glad to know it is working for you now! Thanks for the confirmation.
from node-ibm_db.
Related Issues (20)
- string returned after date type requested HOT 1
- Fetch multiple rows HOT 2
- adm-zip can it be moved to dev dependencies HOT 2
- queryResult deferred callback result changed with version 3.2.3 HOT 5
- Node ibm_db Installation Error with Python 3.12 HOT 2
- conn.query callback being fired before all queries are finished. (possibly) HOT 1
- Release v3.2.4 HOT 1
- Bug Report - Could not locate the bindings file. HOT 2
- Having trouble get a valid npm install in a GitLab CI Pipeline HOT 2
- libcrypto.so.1 error HOT 3
- Connection Pooling not working as expected .maxpool and settimeout having issue HOT 5
- I am tryingto install ibm_db in linux and getting error HOT 5
- GSKIT Error HOT 3
- No longer building on npm install HOT 11
- [IBM][CLI Driver] SQL1042C An unexpected system error occurred. SQLSTATE=58004 HOT 6
- Q: z/OS license being cached ? HOT 1
- npm install not working with podman HOT 7
- There is no build folder after installation of ibm_db HOT 5
- unhandledrejection
- Support of ibm_db with arm64 for MacOS with M1/M2 Chip HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ibm_db.