Skip to content

Instantly share code, notes, and snippets.

@tomellis
Created November 8, 2012 00:51
Show Gist options
  • Save tomellis/4035693 to your computer and use it in GitHub Desktop.
Save tomellis/4035693 to your computer and use it in GitHub Desktop.
Centos6 CCclient_full query
#!/bin/bash
# Prep el6 for CCclientfull
LIBS=/usr/lib64/
CRYPTOLIB_REQ="libcrypto.so.0.9.8"
CRYPTOLIB_EL6="libcrypto.so.1.0.0"
CURLLIB_REQ="libcurl-gnutls.so.4"
CURLLIB_EL6="libcurl.so.4.1.1"
if [ ! -f ${LIBS}/${CRYPTOLIB_REQ} -o ! -h ${LIBS}/${CRYPTOLIB_REQ} -a -f ${LIBS}/${CRYPTOLIB_EL6} ]; then
echo "Adding symlink to from ${LIBS}/${CRYPTOLIB_REQ} to ${LIBS}/${CRYPTOLIB_EL6}"
ln -s ${LIBS}/${CRYPTOLIB_EL6} ${LIBS}/${CRYPTOLIB_REQ}
fi
if [ ! -f ${LIBS}/${CURLLIB_REQ} -o ! -h ${LIBS}/${CURLLIB_REQ} -a -f ${LIBS}/${CURLLIB_EL6} ]; then
echo "Adding symlink to from ${LIBS}/${CURLLIB_REQ} to ${LIBS}/${CURLLIB_EL6}"
ln -s ${LIBS}/${CURLLIB_EL6} ${LIBS}/${CURLLIB_REQ}
fi
export AXIS2C_HOME=/usr/lib64/axis2c
export LD_LIBRARY_PATH=$AXIS2C_HOME/lib:$AXIS2C_HOME/modules/rampart/
./CCclient_full_centos6 127.0.0.1:8774 describeNetworks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment