Installation - ActiveMQ CPP Library 2.1.3

ActiveMQ CPP Library 2.1.3

# Install dependencies

1. libuuid

  > sudo yum install e2fsprogs-devel


2. CppUnit

  > sudo yum install cppunit cppunit-devel


3. GNU Build System

Tool        Recommended Version
autoconf    >= 2.60
automake    >= 1.10
libtool     >= 1.5.24

# Building on Unix/Linux

  > ./autogen.sh

  > ./configure

  > make

  > make install

# To generate the doxygen documentation for the project

  > make doxygen-run

 

Troubleshooting:

The above offical instruction is just woks on paper. Actually, I cannot install activemq cpp well base on it. I got the following error messages:

Error:

> ./autogen.sh
configure.ac:173: error: AC_SUBST: `DX_FLAG_[]DX_CURRENT_FEATURE' is not a valid
m4/ac_doxygen.m4:95: DX_REQUIRE_PROG is expanded from...
m4/ac_doxygen.m4:167: DX_ARG_ABLE is expanded from...
m4/ac_doxygen.m4:324: DX_INIT_DOXYGEN is expanded from...
configure.ac:173: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

The error is related to Doxygen.

Currently, I have no other ways except to disable all configurations about Doxygen.  Actually, it does not affect the main activemq work.

Solution:

1. > vi configure.ac

Comment on the following lines:

## Execute Doxygen macros
# DX_HTML_FEATURE(ON)
# DX_CHM_FEATURE(OFF)
# DX_CHI_FEATURE(OFF)
# DX_MAN_FEATURE(OFF)
# DX_RTF_FEATURE(OFF)
# DX_XML_FEATURE(OFF)
# DX_PDF_FEATURE(OFF)
# DX_PS_FEATURE(OFF)
# DX_INIT_DOXYGEN(activemq-cpp, doxygen.cfg, doc)

 

2. > vi Mikefile.am

Comment on the following lines:

# include doxygen-include.am


# EXTRA_DIST=autogen.sh $(DX_CONFIG) doc/html

 

OK. Please do autogen.sh, ./configure, make, and make install. It works fine now.

 

Start/Stop ActiveMQ

1. startup.sh

 if [ -e /tmp/smlog ]; then
         mv /tmp/smlog /tmp/smlog.bak;
 fi
 nohup bin/activemq > /tmp/smlog 2>&1 &
 echo "[INFO] ActiveMQ is running..."

 

2. shutdown.sh

 pid=`sudo ps -ef | grep "activemq" | awk ' { print $2 } '`
 kill $pid;
 echo "[INFO] ActiveMQ is stopped..."

你可能感兴趣的:(html,linux,xml,unix,activemq)