Error loading shared library libresolv.so.2 : No such file or directory (needed by /lib/libclntsh.so)
Error loading shared library libresolv.so.2 : No such file or directory (needed by /lib/libclntsh.so): I fixed the problem ``` RUN chmod 755 /usr/local/bin/docker-entrypoint.sh && \ mkdir /opt/oracle && \ cd /opt/oracle && \ curl -OL download.oracle.com/otn_software/linux/instantclient/19600/instantcli
I fixed the problem `` RUN chmod 755 /usr/local/bin/docker-entrypoint.sh && \ mkdir /opt/oracle && \ cd /opt/oracle && \ curl -OL download.oracle.com/otn_software/linux/instantclient/19600/instantclient-basic-linux.x64-19.6.0.0.0dbru.zip && \ unzip instantclient-basic-linux.x64-19.6.0.0.0dbru.zip && \ rm -rf instantclient-basic-linux.x64-19.6.0.0.0dbru.zip && \ cd /opt/oracle/instantclient_19_6 && \ ln -s /usr/lib/libnsl.so.2 /usr/lib/libnsl.so.1 && \ ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2 && \ apk add --no-cache libaio libnsl libc6-compat && \ echo "export LD_LIBRARY_PATH=/opt/oracle/mount the host path instantclient_19_6 at container path /lib64:$LD_LIBRARY_PATH" >> /etc/profile.d/oracle_client.sh && \ echo "export PATH=/opt/oracle/instantclient_19_6:$PATH" >> /etc/profile.d/oracle_client.sh
Context: Stack Overflow #67088381 (accepted answer, 3 votes): I get this Error everytime i try to connect to the Oracle DB: ``` DPI-1047: Cannot locate a 64-bit Oracle Client library: "Error loading shared library libnsl.so.1: N o such file or directory (needed by /lib/libclntsh.so)". See oracle.github.io/node-oracledb/INSTALL.html for help Node-oracledb installation instructions: oracle.github.io/node-oracledb/INSTALL.html You must have 64-bit Oracle client libraries in LDLIBRARYPATH, or configured with ldconfig. If you do not have Oracle Database on this computer, then install the Instant Client Basic or Basic Light package from...
Matched source
Source: Published skill Original query: "Error loading shared library libresolv.so.2 : No such file or directory (needed by /lib/libclntsh.so)" Also searched as: "loading shared library libresolv.so.2 : No such file or directory (needed by /lib/libclntsh.so)" Key terms: directory, error, file, libclntsh, library, libresolv, loading, needed, shared, such
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.