ibmdb / vscode-extension

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

Rebuild Native Modules - Error: libdb2.so.1: cannot open shared object file: No such file or directory #57

Closed DavidHappelIP closed 1 year ago

DavidHappelIP commented 1 year ago

Steps to Reproduce:

  1. Run: DB2: Rebuild Native Modules OR Install Db2 connect extension and go to the Db2 connect tab.

Whenever I try to rebuild native modules, or install db2 connect the installation of ODBC cli fails.

Output: ` Proceeding to rebuild native modules No ibm_db found... Downloading node ibm_db Driver from https://github.com/ibmdb/node-ibm_db/archive/master.zip... ... Downloading and extraction of DB2 ODBC CLI Driver completed successfully ...

/home/david/.vscode/extensions/ibm.db2connect-2.3.0/node_modules/ibm_db/installer/clidriver Extraction of build.zip completed successfully...

Successfully renamed the Electron binary Error: libdb2.so.1: cannot open shared object file: No such file or directory `

bimalkjha commented 1 year ago

@DavidHappelIP Run below commands from terminal after closing vscode extension:

cd /home/david/.vscode/extensions/ibm.db2connect-2.3.0/
npm install ibm_db
touch rebuilt_dont_delete
ls -l rebuilt_dont_delete

Now, reopen vscode extension and try connection with db2 server. If still facing issue, then please share the complete output of above commands. Thanks.

bimalkjha commented 1 year ago

@DavidHappelIP I hope issue is fixed for you. If not then let us know. Closing the issue as of now. Thanks.