Closed mike-hor closed 2 years ago
initOracleClient()
doesn't do what you (and we all) want it to do. The error about libnnz will occur if the system library search path (e.g. LD_LIBRARY_PATH, or that set by ldconfig) doesn't contain the Oracle client libraries before Node.js starts. You should avoid passing libDir to initOracleClient()
on Linux.tks,I reslove the problem. as you say,just export $LD_LIBRARY_PATH ,not use libDir(musut in node shell,before node runing).
What versions are you using? vscode + WSL2 64 ubuntu-18.04
Describe the problem
I use vscode and wsl2 ubuntu:18.04 to develop nodejs app. I download the oracle Instant Client unzip to the path: /home/hyh/ops-next/server/instantclient_11_2/linux and then add env export LD_LIBRARY_PATH=/home/hyh/ops-next/server/instantclient_11_2/linux:$LD_LIBRARY_PATH but,i get error.
thorw another error Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libnnz11.so: cannot open shared object file: No such file or directory"
but i find libnnz11.so in the path /home/hyh/ops-next/server/instantclient_11_2/linux ,the error make me so confused.
my code