Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jedi4ever/mcollective-cpp-agents

Sample code for writing c++ agent for mcollective
https://github.com/jedi4ever/mcollective-cpp-agents

Last synced: about 1 month ago
JSON representation

Sample code for writing c++ agent for mcollective

Awesome Lists containing this project

README

        

## Required libraries
To make it work we require some libraries that are standard not (yet) available as rpm.
We install these libraries in /opt as prefix to avoid

- ActiveMQ-cpp :
- APR :
- APR-util :
- Yaml-cpp :

libapr-1 and libapr-util are already available on centos but ActiveMQ-cpp needs more recent versions

### APR
APR :

# wget http://apache.cu.be//apr/apr-1.4.6.tar.gz
# tar -xzvf apr-1.4.6.tar.gz
# cd apr-1.4.6
# ./configure --prefix=/opt
# make install

### APR-util
APR-util :

# wget http://apache.cu.be//apr/apr-util-1.4.1.tar.gz
# tar -xzvf apr-1.4.1.tar.gz
# cd apr-1.4.1
# ./configure --prefix=/opt --with-apr=/opt
# make install

### Activemq-cpp
ActiveMQ-cpp :

This requires apr and apr-util:

Requires openssl-devel (but doesn't seem to work)

# yum install openssl-devel

# wget http://apache.megamobile.be/activemq/activemq-cpp/source/activemq-cpp-library-3.4.1-src.tar.gz
# tar -xzvf activemq-cpp-library-3.4.1-src.tar.gz
# cd activemq-cpp-library-3.4.1
# ./configure --prefix=/opt --with-apr=/opt/ --with-apr-util=/opt --disable-ssl
# make install

### Yaml-cpp
Yaml-cpp :

Requires cmake

# yum install cmake

To have it use /opt as prefix -

# wget http://yaml-cpp.googlecode.com/files/yaml-cpp-0.3.0.tar.gz
# cd yaml-cpp-0.3.0
# mkdir build
# cd build
# cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt ..