EM 24ai: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
June 3, 2025 Leave a comment
Problem:
While checking the status of the agent, I received the following error:
$ /u03/em24/agent/agent_inst/bin/emctl status agent
Oracle Enterprise Manager 24ai Release 1
Copyright (c) 1996, 2024 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
/u03/em24/agent/agent_24.1.0.0.0/bin/emdctl: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
Solution:
As root user, install libnsl package using yum
# yum install libnsl
Retry the command:
$ /u03/em24/agent/agent_inst/bin/emctl status agent
Oracle Enterprise Manager 24ai Release 1
Copyright (c) 1996, 2024 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent is Not Running