Error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory on Rocky-Linux 8.5

If you encounter an error similar to this

% /usr/local/ansys_inc/v221/fluent/fluent22.1.0/launcher/bin/../lnamd64/launcher1: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or director

You have to install the libnsl library as libnsl.so.1 is not installed in Red Hat Linux release 8 be default.

% dnf install libnsl
Advertisement