Error, "Failed to load shared library, library name : libtibhawkhma.so".

Error, "Failed to load shared library, library name : libtibhawkhma.so".

book

Article ID: KB0072847

calendar_today

Updated On:

Products Versions
TIBCO Hawk 5.x 6.x

Description

Resolution:
Symptom:
After installing Hawk on a Linux machine, do the setuid to starthma and tibhawkhma script and follow the Hawk documentation. The following error is reported while running the starthma script.
"Lib name libtibhawkhma.so  Failed to load shared library, library name : libtibhawkhma.so".

Possible Causes:
1). libtibhawkhma.so does not exist.
2). Running ldd to tibhawkhma,  libtibhawkhma.so is not found.
3). libtibhawkhma.so exists but it can not be loaded under setuid permission.

Issue/Introduction

Error, "Failed to load shared library, library name : libtibhawkhma.so".

Resolution

Workarounds:
1). Do setuid, then follow the Hawk documentation. Add the following entries to /etc/ld.so.conf and then run ldconfig.
*******************************
/<TIBCO_HOME>/tibrv/<VERSION>/lib
/<TIBCO_HOME>/hawk/<VERSION>/lib
/<TIBCO_HOME>/hawk/<VERSION>/ami_api/lib
/<TIBCO_HOME>/as/<VERSION>/lib
*******************************

2). Set starthma and tibhawkhma script to run with ROOT permission instead of setuid, such as:
*******************************
chown root tibhawkhma
chown root starthma.sh
chmod 744 or 777 tibhawkhma
chmod 744 or 777 starthma.sh
*******************************

3). On an HP machine, when starting the starthma script, it will throw the error, "Failed to load shared library, library name : libtibhawkhma.so". Do the following :
*******************************
Run “chmod 744 *.so” in folder <TIBCO_HOME>/hawk/<VERSION>/lib and <TIBCO_HOME>/hawk/<VERSION>/ami_api/lib.
*******************************