Wednesday, March 20, 2013

Building and Installing Cfengine from Source

Pre-requisites: 
1. OpenSSL - Encryption System. http://www.openssl.org 
2. Tokyo Cabinet - Flat File Database. http://fallabs.com/tokyocabinet/ 
3. PCRE - Perl Compatible Regular Expression Library. http://www.pcre.org/ 

Sample commands to Install the pre-requisites under ubuntu: 

1. sudo apt-get update
2. sudo apt-get install libtokyocabinet-dev
3.  sudo apt-get install libssl-dev
4. sudo apt-get install libpcre3-dev


Downloading and Installing Cfengine
If you have not purchased ready to use cfengine binaries, you need you build them from source code. This is pretty easy once you have the required development environment setup ie., installed looks like gccflexbison. 

Here are the steps you need to follow for building cfengine from source. 

1.  Download Latest Cfengine source to a directory. http://cfengine.com/source-code
2.  tar zxf cfengine-x.x.x.tar.gz
3.  ./configure
4.  make
5.  make install

The last step actually installs the built binaries onto your system. Be default all gets installed in /var/cfengine/

That's all you need to do for installing cfengine. 

Easy.. Isn't It? 

No comments:

Post a Comment