Failed to load shared library, library name : libadmqs.so

Failed to load shared library, library name : libadmqs.so

book

Article ID: KB0081074

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Adapter for Websphere MQ 6.2.5

Description

Some Customer's may face the below error while starting the MQ adapter instance on from command line when the application is deployed in the administrator.

---------------------------------
Lib name libadmqs.so
Failed to load shared library, library name : libadmqs.so
---------------------------------
 

Issue/Introduction

Failed to load shared library, library name : libadmqs.so

Environment

Linux

Resolution

Use the ldd command to verify the which dependent files are failing to load. Please run the below command from the adapter's lib directory or provide the complete path of the file if you are running it other than the $ADAPTER_HOME/lib directory.

Example : ldd libadmqs.so
        linux-gate.so.1 =>  (0xf7768000)
        libtibrv.so => not found
        libtibrvcm.so => not found
        libtibrvcmq.so => not found
        libtibrvft.so => not found
        libtibrvsd.so => not found
        libmaverick58.so => /dmsg02/tibco/adapter/sdk/5.8/lib/libmaverick58.so (0xf70a1000)
        librepowww580.so => /dmsg02/tibco/adapter/sdk/5.8/lib/librepowww580.so (0xf6fef000)
        libxerces-c.so.28 => /dmsg02/tibco/adapter/sdk/5.8/lib/libxerces-c.so.28 (0xf6c08000)
        libicudata.so.32 => /dmsg02/tibco/adapter/sdk/5.8/lib/libicudata.so.32 (0xf6c06000)
        libicuio.so.32 => /dmsg02/tibco/adapter/sdk/5.8/lib/libicuio.so.32 (0xf6bfd000)
        libicuuc.so.32 => /dmsg02/tibco/adapter/sdk/5.8/lib/libicuuc.so.32 (0xf6b3e000)
        libicui18n.so.32 => /dmsg02/tibco/adapter/sdk/5.8/lib/libicui18n.so.32 (0xf6a47000)
        libAWB.so => /dmsg02/tibco/adapter/admqs/6.2/lib/libAWB.so (0xf6937000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xf691d000)
        libdl.so.2 => /lib/libdl.so.2 (0xf6918000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf68fd000)
        libstdc++.so.5 => /lib/libstdc++.so.5 (0xf6844000)
        libm.so.6 => /lib/libm.so.6 (0xf6802000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf67e6000)
        libc.so.6 => /lib/libc.so.6 (0xf6626000)
        libtibrvft.so => not found
        libtibrvcmq.so => not found
        libtibrvcm.so => not found
        libtibrv.so => not found
        librt.so.1 => /lib/librt.so.1 (0xf661c000)
        /lib/ld-linux.so.2 (0x5655e000)

Since the in the above example rv libraries are not found. To check if all the varriables are loaded please start the adapter in the debug mode and check which varriables are not set. For example in the below debug log snippet since the RV_HOME varriable is not set due to which "ldd libadmqs.so" has "not found" error for the rv libaries.

key: tibco.env.RV_HOME
value:
Setting env variable RV_HOME=

To solve this issue please set the value of Tibco environment variable which is not set. In the above-illustrated example if you set the value of RV_HOME in the admqs.tra file which is present in the adapter's bin directory.