TIBCO ActiveSpaces® - Start Agent error while loading shared libraries: libas-common

TIBCO ActiveSpaces® - Start Agent error while loading shared libraries: libas-common

book

Article ID: KB0085628

calendar_today

Updated On:

Products Versions
TIBCO ActiveSpaces -
Not Applicable -

Description

Description:
Upon startup, the as-agent.jar throws the following error.

 ./as-agent: error while loading shared libraries: libas-common.so: cannot open shared object file: No such file or directory
Symptoms:
 ./as-agent: error while loading shared libraries: libas-common.so: cannot open shared object file: No such file or directory
Cause:
System wide variables for TIBCO ActiveSpaces® have not been setup.

Issue/Introduction

TIBCO ActiveSpaces® - Start Agent error while loading shared libraries: libas-common

Resolution

Create a file in /etc/profile.d called as.sh . The file should contain the following:

export AS_HOME=/opt/tibco/as/2.1
export JAVA_HOME=/usr/java/jdk1.7.0_25
export PATH=$AS_HOME/bin:$AS_HOME/lib:$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
export LD_LIBRARY_PATH=$AS_HOME/lib:$LD_LIBRARY_PATH

Now edit the applicable file paths to match your system setup. Once you have saved the file, run the following command:

chmod 755 as.sh

This will allow all AS Libraries to be loaded at system startup. Go to your /opt folder and create the file start-as.sh . Make the file executable by running the following command:

chmod 755 start-as.sh

In start-as.sh, add the following information. Be sure to point to the correct
TIBCO ActiveSpaces® installation folder below:

clear
cd /opt/tibco/as/2.1/lib
export AS_HOME=/opt/tibco/as/2.1
export CLASSPATH=$AS_HOME/lib/as-common.jar:$AS_HOME/lib/as-admin.jar:$AS_HOME/lib/antlr-3.2.jar:$CLASSPATH
java -jar as-agent.jar -metaspace woywoy_ascluster -discovery "tcp://10.97.70.120:50100" -listen "tcp://10.97.70.120:50100" -remote_listen "tcp://10.97.70.120:40151" -name asm5 -data_store /opt/datastoreAS212/ &

Save the file and run:

./start-as.sh