-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBM_DB does not support Node JS v4.0.0 #64
Comments
I was able to install ibm_db on Node js v4.0 64-bit but like the user above, also ran into issues when running the code. What are the plans to get ibm_db supported on Node js v4.0? |
Yes, not a surprise, see this nodejs/node#2798 |
Try it: |
The issue seems to persist, even with gcc version > 4.8 |
I verified it on Mac using node.js V 4.1.1. It seems working fine now. All test cases are working fine. But, I see a problem here. It does not seem to work with older node.js. I check with v0.12.4 on linux. Not sure how it behaves for you. Thanks. |
Thanks @bimalkjha that worked for me. 👍 |
@elkorep Since, it is working on all zLinux except one, I suspect some system issue and not ibm_db issue. I would suggest to copy ibm_db installed from some other zLinux to the failing system and run below command to get the exact cause of the issue: node-gyp configure build --IBM_DB_HOME=$IBM_DB_HOME --IS_DOWNLOADED=true node-gyp should be in your system path and run this command from ibm_db folder. Thanks. |
Thanks @bimalkjha I will look into it |
@bimalkjha I am having problems installing ibm_db on zLinux SLES 11. This is my current environment:
This is the steps I took to install:
This is the full error message I get:
|
@bimalkjha Hi, I have a different issue testing ibm_db on a different machine. I am not sure, but this could be an issue with missing libraries in the environment I am using, can you confirm? The environment:
The steps I took to test:
The error I get:
Thank you! |
@rperlas For you second issue, you need to install OS library libxml2.so.2. I don't see any other issue. Your first reported issue is compiler issue. See the start of the error and it is about v8 header file. /home/nodebot1/.node-gyp/4.2.1/include/node/v8.h:336: error: expected unqualified-id before ‘using’ The current installed compiler is not able to compile the node.js header file. Try with latest compiler. This issue is not related with ibm_db code. Thanks. |
Thanks @bimalkjha. I will look into it. |
@rperlas ,any updates on your issues? I think everything is working for Node 4.0 except windows? |
Is there anyway to make this update reverse compatible? |
@smartmouse Yes, everything works fine except windows. |
@csaroff We are looking into code to make single branch available for all versions of node. Yes, currently for node v0.10.x or v0.12.x, you need to run |
In Ubuntu 15.10, I was able to successfully run node 4.2.2 with the ibmdb version here: However, in Windows 2008 R2, it has issue with the git+ portion of this version-specification (when specified in the package.json file). Is this version also for Windows? If so, how should it show in the package.json file. Windows don't like "git". How can I run node 4.2.2 with the ibmdb module in Windows 2008 R2? |
Ah, "Note: Currently, node-ibm_db is not supported on Windows using NodeJS V4.x." --Source: https://github.com/ibmdb/node-ibm_db |
If you are using IBM SDK node.js 4.x, On older distribution like RH 6.x , you can upgrade the gcc level to 4.8.x but this is not an officially supported platforms This should be useful info |
"npm install ibm_db" works with all versions of node.js on Windows platform only. Thanks. |
ibm_db supports Node.js V4.x. On windows use "npm install ibm_db" with v4 node.js. |
When will npm install ibm_db support V4 on all platforms? |
We are working on it. |
We have released a new version of ibm_db 0.0.18. |
I am getting the below error when trying to use IBM_DB for db2 access from windows. $ node nodetest.js Error: Module version mismatch. Expected 47, got 46. |
@sharethemagics ,
thanks |
@rhtpandeyIN Please find the answers below
var http = require("http"); console.log("Test program to access DB2 sample database"); http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text/plain'}); response.end('Hello World\n'); console.log('Server running at http://127.0.0.1:8081/'); thanks |
Hi @sharethemagics,
you can use following command for Installing from github directly : |
@rhtpandeyIN Thanks a lot. It worked fine. |
Thanks & Welcome |
Will node-ibm_db support >= v5 soon? |
Yes, within 2 weeks. Currently it is supported using npm install Thanks and Regards, From: Tim Douglas [email protected] Will node-ibm_db support >= v5 soon? |
Great, thanks @bimalkjha |
IBM_DB does not install on Node JS v4.0.0 64-bit and 32-bit on linux machines.
It installs on windows 7 with the 64-bit version of Node JS v4.0.0 but fails to run the tests.
The text was updated successfully, but these errors were encountered: