IBM Support

UnsatisfiedLinkError: cannot open shared object file libXtst.so.6

Troubleshooting


Problem

Though prerequisite check completes successfully running db2setup fails with the below exception. Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/db2.tmp.1627/db2/linuxamd64/java/jre/lib/amd64/xawt/libmawt.so (libXtst.so.6: cannot open shared object file: No such file or directory)

Symptom

Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/db2.tmp.1627/db2/linuxamd64/java/jre/lib/amd64/xawt/libmawt.so (libXtst.so.6: cannot open shared object file: No such file or directory)

Cause

Missing libXtst.so.6

Diagnosing The Problem

Check for the 32 and 64 bit installations of the libXtst package.

rpm -q --queryformat '%{NAME}:\n[%{FILENAMES}\n]' libXtst

Resolving The Problem

Install the missing 32 or 64 bit libXtst package for the target 32 or 64 bit package of DB2.

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Install\/Migrate\/Upgrade - Install\/Setup - GUI","Platform":[{"code":"PF016","label":"Linux"}],"Version":"10.1;10.5;9.7","Edition":"Advanced Enterprise Server;Advanced Workgroup Server;Enterprise Server;Personal;Workgroup Server","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg21964125