IBM Support

Error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

Question & Answer


Question

You receive the following type error when trying to execute ./nzload,, ./nzdz or other nz commands. ./ nzload error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory ./nzsql: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

Cause

More than likely the library is not installed on your system and you need to install it.

Answer

1. see if the library exist on your system:
locate libz.so.1
- or -
find / -name libz.so.1

2. Perhaps the library is not installed on your system and you need to install it. Here what you need:

yum provides '*/libz.so.1'

3. Is the environment variable LD_LIBRARY_PATH set and pointing to the folder where the libz.so.1 is located?

4. Copy the library's over from another machine to the linux client machine

[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"IBM Netezza Analytics","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

More support for:
IBM PureData System

Software version:
1.0.0

Document number:
278253

Modified date:
17 October 2019

UID

swg21982597