Skip to content wrong ELF class: ELFCLASS64

Netezza client is not working and is throwing below error.
$ nzsql
nzsql: error while loading shared libraries: wrong ELF class: ELFCLASS64

$ pwd

$ ldd ./bin/nzsql => (0x003e0000) => /lib/ (0x00256000) => /lib/ (0x00600000) => /nzhome/nzclient/lib/ (0x00d8f000) => /nzhome/nzclient/lib/
(0x008c2000) => /lib/ (0x00f01000) => /lib/ (0x001e4000) => /lib/ (0x002ef000) => not found => /lib/ (0x00bf0000) => /lib/ (0x003e1000) => /lib/ (0x0015b000) => /lib/ (0x00e87000) => /lib/ (0x002fe000) => /lib/ (0x00e1c000) => /lib/ (0x001aa000)
/lib/ (0x0013b000) => /lib/ (0x00110000) => /lib/ (0x0011b000) => /lib/ (0x0011f000) => /lib/ (0x001ff000)

Here you will find that is shown as not found. But when you check, you will see the symbolic link is alread created.
$ pwd

$ ls -lrt -> /lib64/

You will see that it is pointing to 64 bit library file. Which is wrong. It should point to /lib/

In order to fix th issue, you have to delete the current soft link and create a new one which will point to 32bit library file.
$ pwd

$ rm

$ ln -s /lib/ /nzhome/nzclient/v707/lib/

$ ls -lrt -> /lib/