Issue:
When user starts Local Agent (nsqmq process), the following error is received:
Unable to open Queue Manager: RC(2012)
Solution:
ldd nsqmq
If you get ldd /opt/nastel/apwmq/bin/nsqmq
libnsqapi.so => /opt/nastel/apwmq/lib/libnsqapi.so
libnsqclnx.so => /opt/nastel/apwmq/lib /libnsqclnx.so
libnsqsign.so => /opt/nastel/apwmq/lib /libnsqsign.so
libnsqauth.so =>/opt/nastel/apwmq/lib libnsqauth.so
libnsqmqtx.so => /opt/nastel/apwmq/lib /libnsqmqtx.so
libmqm.so => (file not found) <== but not found here; this indicates /usr/lib/*mqm* links are missing
libmqmcs.so => (file not found)
libmqmzse.so => (file not found) Please first verify that IBM links in /usr/lib are missing:
ls -l /usr/lib/*mqm*
If the link is missing, there are 2 ways to satisfy the unresolved libraries:
- Create the missing links to the IBM libraries, as user root do the following:
cd /usr/lib
ln -s /opt/mqm/lib/libmqm.so libmqm.so
ln -s /opt/mqm/lib/libmqmcs.so libmqmcs.so
ln -s /opt/mqm/lib/libmqmzse.so libmqmzse.so
<... etc for other missing links> - Use LD_LIBRARY_PATH to define lib directories to search for IBM's lib files:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mqm/lib
export LD_LIBRARY_PATH