The default installation of RHEL 5 distributions does not include all the shared objects required to run CICS Transaction Gateway.
The Gateway daemon fails to start and returns the message:
CTG6765E The Gateway daemon is unable to find the CICS TG JNI native library DLL libctgjni.so
The Gateway daemon fails to start because the libctgjni.so file requires /usr/lib/libstdc++.so.5 to be available. The 32-bit version of the rpm package compat-libstdc++-33-3.2.3 is not installed by default in a Linux installation.
Diagnosing the problem
Start the Gateway daemon with trace enabled, issue the command:
Inspect the output, look for message CTG6765E followed by trace message "java.lang.UnsatisfiedLinkError: ctgjni (libstdc++.so.5: cannot open shared object file: No such file or directory)".
Query the operating system to determine if the 32-bit C++ compatibility package is installed, run the following command:
rpm -ql `rpm -qa | grep compat-libstdc++-33`
If /usr/lib/libstdc++.so.5 is not listed in the output the 32-bit C++ compatibility package must be installed.
Resolving the problem
Install package compat-libstdc++-33-3.2.3-47 or later.