Skip to content

Commit

Permalink
update windows binary and electron binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
bimalkjha committed Sep 23, 2023
1 parent b4d24a3 commit d86a835
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ title: 'Bug Report'
3. For SSL connection, do you have ssl certificate from server?
4. If you have certificate, are you using `SSLServerCertificate` keyword in connection string or using your own keystore db?
5. Share the connection string used for connection by masking password.
6. update database connection info in `ibm_db/test/config.testConnectionStrings.json` file and share complete output of below commands:
* cd .../ibm_db
6. update database connection info in `ibm_db/test/config.json` file and share complete output of below commands:
* cd .../node_modules/ibm_db
* npm install
* node test/test-basic-test.js
7. For non-SSL connection, update connection info for `db2cli validate` command in file `ibm_db/installer/testODBCConnection.bat` for windows or `ibm_db/installer/testODBCConnection.sh` for non-Windows. Then execute `testODBCConnection.bat` from Administrator command prompt on Windows or `testODBCConnection.sh` script from terminal on non-Windows and share complete output of script along will all generated 1.* files in zip file.
Expand Down
5 changes: 5 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ npm install
Well Done :)
## <a name="m1chip"></a> 10. Steps to install ibm_db on MacOS M1/M2 Chip system (arm64 architecture)
>
> **Important: We do not have clidriver/dsdriver for ARM64 architecture yet. The driver for IBM DB2 is not compatible with Apple Silicon and will have to run x86_64 version of clidriver in emulated mode.**
> Please support [this request for an Apple Silicon version of the driver](https://ibm-data-and-ai.ideas.ibm.com/ideas/DB2CON-I-92) to show IBM that you are interested in a native solution.
>
**Warning:** If you use the ARM version of homebrew (as recommended for M1/M2 chip systems) you will get the following error message:
```
$ brew install gcc-12
Expand Down
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ibm_db: 2.8.1

- For Node.js >= V15.x on RHEL and RHEL 8.x, GCC v8.2.1 is required.

- The latest node.js version using which `ibm_db` is tested: 20.7.0
- The latest node.js version using which `ibm_db` is tested: **20.7.0**

## Install

Expand Down Expand Up @@ -109,6 +109,11 @@ To avoid this download, you can manually download clidriver from this location o
> If installation fails while downloading [clidriver](#downloadCli), follow instructions as documented [here](#downloadCliFailed).
### Validate your installation

- Update database connection info in `node_modules\ibm_db\test\config.json` file.
- Run `node node_modules\ibm_db\test\test-basic-test.js` command.

### Important Environment Variables and Download Essentials

`IBM_DB_HOME :`
Expand Down Expand Up @@ -300,7 +305,8 @@ ibmdb.open(connStr, function (err,conn) {
});
});
});
```
```javascript
ibmdb.open(connStr).then(
conn => {
conn.query("select 1 from sysibm.sysdummy1").then(data => {
Expand All @@ -313,7 +319,8 @@ ibmdb.open(connStr).then(
console.log(err)
}
);
```
```javascript
main();
async function main() {
try {
Expand Down Expand Up @@ -345,14 +352,14 @@ OR, just delete the `node_modules\ibm_db` directory manually from your system.
## <a name="sql1598n"></a>For z/OS and iSeries Connectivity and SQL1598N error
- Connection to Db2 for z/OS or Db2 for i(AS400) using `ibm_db` driver from distributed platform (Linux, Unix, Windows and MacOS) is not free.
- Connection to `Db2 for z/OS` or `Db2 for i`(AS400) Server using `ibm_db` driver from distributed platforms (Linux, Unix, Windows and MacOS) is not free.
- Connection to Db2 for LUW or Informix Server using `ibm_db` driver is free.
- Connection to `Db2 for LUW` or `Informix` Server using `ibm_db` driver is free.
- `ibm_db` returns SQL1598N error in absence of a valid db2connect license. SQL1598N error is returned by the Db2 Server to client.
To suppress this error, Db2 server must be activated with db2connectactivate utility OR a client side db2connect license file must exist.
- Db2connect license can be applied on database server or client side. A db2connect license of version 11.5 is required for ibm_db.
- Db2connect license can be applied on database server or client side. A **db2connect license of version 11.5** is required for ibm_db.
- Ask your DBA to run db2connectactivate utility on Server to activate db2connect license.
Expand Down Expand Up @@ -419,8 +426,11 @@ Note: "db2cli bind" does not work with DB2 z/OS if the CLI packages (SYSSH*) wer
## Troubleshooting on z/OS
Some errors on z/OS are incomplete, so, to debug, add the following to your _Db2 ODBC initialization file_:
- APPLTRACE=1
- APPLTRACEFILENAME=/u/<username>/odbc_trace.txt
```
APPLTRACE=1
APPLTRACEFILENAME=/u/<username>/odbc_trace.txt
```
### Db2 z/OS: UnicodeDecodeError Exception
- Make sure you have set `CURRENTAPPENSC=ASCII` or `UNICODE` in ODBC initialization file.
Expand Down
Binary file modified build.zip
Binary file not shown.
33 changes: 29 additions & 4 deletions installer/driverInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var platform = os.platform();
var arch = os.arch();

var vscode_build = false;
var electron_version = '19.1.9';
var electron_version = '25.8.0';
var downloadProgress = 0;
var silentInstallation = false;

Expand All @@ -40,6 +40,16 @@ if(downloadProgress == 0) {
printMsg("platform = " + platform + ", arch = " + arch +
", node.js version = " + process.version);
}
if(platform == 'darwin' && arch == 'arm64') {
console.log('Apple Silicon Chip system with arm64 architecture is not supported. ' +
'Please install x64 version of node.js and gcc to install ibm_db.\n' +
'Check https://github.com/ibmdb/node-ibm_db/blob/master/INSTALL.md#m1chip for instructions.\n');
process.exit(1);
} else if(arch == 'arm64') {
console.log('ARM64 architecture is not supported. ' +
'Please install x64 version of node.js and gcc to install ibm_db.\n');
process.exit(1);
}

var httpsAgent;
if (process.env.npm_config_cafile) {
Expand Down Expand Up @@ -615,9 +625,9 @@ var install_node_ibm_db = function(file_url) {
var ODBC_BINDINGS_V13 = 'build\/Release\/odbc_bindings.node.13.14.0';
var ODBC_BINDINGS_V14 = 'build\/Release\/odbc_bindings.node.14.21.3';
var ODBC_BINDINGS_V15 = 'build\/Release\/odbc_bindings.node.15.14.0';
var ODBC_BINDINGS_V16 = 'build\/Release\/odbc_bindings.node.16.20.0';
var ODBC_BINDINGS_V16 = 'build\/Release\/odbc_bindings.node.16.20.2';
var ODBC_BINDINGS_V17 = 'build\/Release\/odbc_bindings.node.17.9.1';
var ODBC_BINDINGS_V18 = 'build\/Release\/odbc_bindings.node.18.16.0';
var ODBC_BINDINGS_V18 = 'build\/Release\/odbc_bindings.node.18.18.0';
var ODBC_BINDINGS_V19 = 'build\/Release\/odbc_bindings.node.19.9.0';

// Windows add-on binary for node.js v0.10.x, v0.12.7, 4.x, 6.x, 7.x, 8.x and 9.x has been discontinued.
Expand Down Expand Up @@ -837,7 +847,22 @@ function findElectronVersion() {
var codeOut = execSync('code --version').toString();
vscodeVer = parseFloat(codeOut.split('\n')[0]);
if(!isNaN(vscodeVer)) {
if (vscodeVer >= 1.75){
if (vscodeVer >= 1.82){
electron_version = "25.8.0";
}
else if (vscodeVer >= 1.81){
electron_version = "22.3.18";
}
else if (vscodeVer >= 1.80){
electron_version = "22.3.14";
}
else if (vscodeVer >= 1.78){
electron_version = "22.4.8";
}
else if (vscodeVer >= 1.77){
electron_version = "19.1.11";
}
else if (vscodeVer >= 1.75){
electron_version = "19.1.9";
}
else if (vscodeVer >= 1.74){
Expand Down

0 comments on commit d86a835

Please sign in to comment.