When trying to run the Lightscan utility on Redhat Linux, the Lightscan command fails with; "Error while loading shared libraries: libz.so:cannot open shared object file: No such file or directory".

book

Article ID: 50489

calendar_today

Updated On:

Products

CA Automation Suite for Data Centers - Configuration Automation CA Client Automation - Asset Management CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Remote Control CA Client Automation - Asset Intelligence CA Client Automation - Desktop Migration Manager CA Client Automation - Patch Manager CA Server Automation

Issue/Introduction

Description:

When trying to run the Lightscan utility on Redhat Linux the Lightscan command fails with "Error while loading shared libraries: libz so:cannot open shared object file: No such file or directory".

This will usually mean that you do not have "libz.so" in the /usr/lib directory.

You may have libz.so.1 or libz.so.1.1.4 instead.

Solution:

As per the lightscan readme,

Note: Compression depends on libz.so being available on your system.
Please check /usr/lib directory. In some cases you will find libz.so.1 or
libz.so.1.1.4 instead of libz.so. In such a case please create a symbolic
link between libz.so and the existing one.

If you check /usr/lib and find that you do not have libz.so, but do have libz.so.1 or libz.so.1.1.4, you can create a dynamic link by running the "ln" command below.

For example:

ln <file path and name of the libz file you do have> </usr/lib/libz.so>

In the case where you have /usr/lib/libz.so.1, you can use the command below to resolve this problem.

ln /usr/lib/libz.so.1 /usr/lib/libz.so

This command will establish the dynamic link for libz.so and will allow you to then run the lightscan command on Redhat Linux.

Environment

Release: UASIT.99000-12.5-Asset Intelligence
Component: