domainutilitycmd fails to start on Red Hat Linux 8.x with an error "error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory"

domainutilitycmd fails to start on Red Hat Linux 8.x with an error "error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory"

book

Article ID: KB0070066

calendar_today

Updated On:

Products Versions
TIBCO Runtime Agent (TRA) 5.11.0 and higher

Description

While creating the domain using domain utility using cmd utility on Red Hat Linux 8.x and higher, or Red Hat equivalent linux distribution , Utility fails with below error:
=====================
[ec2-user@ip-172-31-19-240 bin]$ ./domainutilitycmd -cmdFile /home/ec2-user/BWProducts/CreateDomain.xml
./domainutilitycmd: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory

=====================
The same error may happen running other components like AppManage, Domain Utility, desginer, traUpgradeManager etc.


Cause:
Shared library "libnsl.so.1" is required by TRA wrapper, but is not available on the system. 

Environment

RHEL 8.x and higer

Resolution

Run command below to install the libnsl package explicitly:
             $sudo dnf install libnsl*

After the installation, you should see all libraries are available like below if you run command "ldd domainutilitycmd":
$ldd domainutilitycmd
        linux-vdso.so.1 (0x00007fff1478a000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007ff6861b5000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007ff685fb1000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff685d91000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007ff6859fc000)
        libm.so.6 => /lib64/libm.so.6 (0x00007ff68567a000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007ff685462000)
        libc.so.6 => /lib64/libc.so.6 (0x00007ff68508c000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ff6863ce000)


Please contact TIBCO support should you have further questions. 

Issue/Introduction

domainutilitycmd fails to start on Red Hat Linux 8.x with an error "error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory"

Additional Information

   https://access.redhat.com/solutions/4975641