Skip to content

nzsql: error while loading shared libraries: libssl.so.6: cannot open shared object file

Issue:
Netezza client is not working and is throwing below error.
$ nzsql
nzsql: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory

Analysis:
$ pwd
/nzhome/nzclient/v707

$ ldd ./bin/nzsql
linux-gate.so.1 => (0x009b0000)
libz.so.1 => /lib/libz.so.1 (0x004ca000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x001ba000)
libssl.so.6 => not found
libcrypto.so.6 => not found
libresolv.so.2 => /lib/libresolv.so.2 (0x00182000)
libnsl.so.1 => /lib/libnsl.so.1 (0x003e1000)
libdl.so.2 => /lib/libdl.so.2 (0x002ef000)
libm.so.6 => /lib/libm.so.6 (0x00110000)
libc.so.6 => /lib/libc.so.6 (0x004de000)
libfreebl3.so => /lib/libfreebl3.so (0x00711000)
/lib/ld-linux.so.2 (0x0013b000)

Here you will see that ssl and crypto library files are missing, so thats why NzClient is not working fine.

Solution:
In order to fix this issue. make sure you have cerated below symbolic link if you are on Red Hat 6.
ln -s /usr/lib/libssl.so.10 /nzhome/nzclient/v707/lib/libssl.so.6
ln -s /usr/lib/libcrypto.so.10 /nzhome/nzclient/v707/lib/libcrypto.so.6

If you are on older version of Red Hat then use:
ln -s /lib/libssl.so.0.9.8e /nzhome/nzclient/v707/lib/libssl.so.4
ln -s /lib/libcrypto.so.0.9.8e /nzhome/nzclient/v707/lib/libcrypto.so.4

NOTE: In above example client is installed at /nzhome/nzclient/v707