ibmdb / vscode-extension

vscode extenstion for db2 as db2connect
7 stars 2 forks source link

Native driver Installation Error '/Users/bjha/nodework/clidriver/lib/libdb2.dylib' (no such file) #61

Closed ayvamit closed 1 year ago

ayvamit commented 1 year ago

I have tried command palette DB2: Rebuild Native Module option but same error as mentioned.

Following is output of DB2 Connect:

Intellisense Activated
[12/05/2023 10:00:31] Proceeding to rebuild native modules
[12/05/2023 10:00:31] Cleaning up the current ibm_db
Downloading node ibm_db Driver from https://github.com/ibmdb/node-ibm_db/archive/master.zip...

NaN% | 512 bytes downloaded out of NaN bytes.

NaN% | 1876 bytes downloaded out of NaN bytes.

NaN% | 3246 bytes downloaded out of NaN bytes.

NaN% | 4616 bytes downloaded out of NaN bytes.

NaN% | 5986 bytes downloaded out of NaN bytes.

NaN% | 7356 bytes downloaded out of NaN bytes.

NaN% | 8726 bytes downloaded out of NaN bytes.

NaN% | 10090 bytes downloaded out of NaN bytes.

NaN% | 11460 bytes downloaded out of NaN bytes.

NaN% | 12830 bytes downloaded out of NaN bytes.

NaN% | 14200 bytes downloaded out of NaN bytes.

NaN% | 14868 bytes downloaded out of NaN bytes.

NaN% | 16233 bytes downloaded out of NaN bytes.

NaN% | 17598 bytes downloaded out of NaN bytes.

NaN% | 18956 bytes downloaded out of NaN bytes.

NaN% | 20320 bytes downloaded out of NaN bytes.

NaN% | 21690 bytes downloaded out of NaN bytes.
......
NaN% | 10866293 bytes downloaded out of NaN bytes.

NaN% | 10882677 bytes downloaded out of NaN bytes.

NaN% | 10898995 bytes downloaded out of NaN bytes.

NaN% | 10915373 bytes downloaded out of NaN bytes.

NaN% | 10931757 bytes downloaded out of NaN bytes.

NaN% | 10948141 bytes downloaded out of NaN bytes.

NaN% | 10964459 bytes downloaded out of NaN bytes.

NaN% | 10980837 bytes downloaded out of NaN bytes.

NaN% | 10997221 bytes downloaded out of NaN bytes.

NaN% | 11013605 bytes downloaded out of NaN bytes.

NaN% | 11029923 bytes downloaded out of NaN bytes.

NaN% | 11039590 bytes downloaded out of NaN bytes.
Downloading and extraction of node ibm_dbDriver completed successfully... 

Successfully renamed the directory.
platform = darwin, arch = x64, node.js version = v16.17.1
Downloading DB2 ODBC CLI Driver from https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz...

0.03% | 8192 bytes downloaded out of 29943201 bytes.

0.05% | 16384 bytes downloaded out of 29943201 bytes.

0.08% | 24576 bytes downloaded out of 29943201 bytes.

0.11% | 32768 bytes downloaded out of 29943201 bytes.

0.14% | 40960 bytes downloaded out of 29943201 bytes.

0.16% | 49152 bytes downloaded out of 29943201 bytes.

0.19% | 57344 bytes downloaded out of 29943201 bytes.

0.22% | 65536 bytes downloaded out of 29943201 bytes.

0.25% | 73728 bytes downloaded out of 29943201 bytes.

0.27% | 81920 bytes downloaded out of 29943201 bytes.

0.30% | 90112 bytes downloaded out of 29943201 bytes.

0.33% | 98304 bytes downloaded out of 29943201 bytes.

0.36% | 106496 bytes downloaded out of 29943201 bytes.

0.38% | 114688 bytes downloaded out of 29943201 bytes.
.....

99.80% | 29884416 bytes downloaded out of 29943201 bytes.

99.83% | 29892608 bytes downloaded out of 29943201 bytes.

99.86% | 29900800 bytes downloaded out of 29943201 bytes.

99.89% | 29908992 bytes downloaded out of 29943201 bytes.

99.91% | 29917184 bytes downloaded out of 29943201 bytes.

99.94% | 29925376 bytes downloaded out of 29943201 bytes.

99.97% | 29933568 bytes downloaded out of 29943201 bytes.

100.00% | 29941760 bytes downloaded out of 29943201 bytes.

100.00% | 29943201 bytes downloaded out of 29943201 bytes.
Downloading and extraction of DB2 ODBC CLI Driver completed successfully ...

Extraction of build.zip completed successfully... 

Successfully renamed the Electron binary
Error: dlopen(/Users/amityadav/.vscode/extensions/ibm.db2connect-2.3.0/node_modules/ibm_db/build/Release/odbc_bindings.node, 0x0001): Library not loaded: /Users/bjha/nodework/clidriver/lib/libdb2.dylib
  Referenced from: <057C4266-A5A0-35A5-8D56-81470EFC0B46> /Users/amityadav/.vscode/extensions/ibm.db2connect-2.3.0/node_modules/ibm_db/build/Release/odbc_bindings.node
  Reason: tried: '/Users/bjha/nodework/clidriver/lib/libdb2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/bjha/nodework/clidriver/lib/libdb2.dylib' (no such file), '/Users/bjha/nodework/clidriver/lib/libdb2.dylib' (no such file), '/usr/lib/libdb2.dylib' (no such file, not in dyld cache)
bimalkjha commented 1 year ago

@ayvamit Please uninstall and install db2connect extension again. I have pushed the changes with correct libdb2.dylib path which should fix this problem. Thanks.

bimalkjha commented 1 year ago

Or just try View -> Command Palette -> Db2: Rebuild Native Modules option and it should fix the issue. Thanks.

ayvamit commented 1 year ago

It works now... Thank you @bimalkjha