HCnix installation error: while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory".

Question: Unable to install HCnix due to error.

 "./lib/installer: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory".

 

Solution:
This error appears because HCnix installer could not find the file libz.so.1 in lib folder of HCnix. This issue can be resolved by creating the alias of libz.so.x.x file with name of libz.so.1 in lib folder of HCnix.

Use the following command to create alias:

ln -s /hcnix/lib/libz.so.x.x       /hcnix/lib/libz.so.1

Above command will create a libz.so.1 file in lib folder of HCnix.

OR

 
When you're trying to run 32bit executable file in a 64 bit system that doesn't have 32-bit library packages support installed. You have to add i386 architecture by executing the following commands on Linux shell:
 
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 
or
sudo apt-get -f install libc6-i386
 

 

Add Feedback