Skip to content
Ted Zlatanov edited this page Jun 3, 2014 · 1 revision

Installing Design Center

Prerequisites

You'll need to have some prerequisites to use Design Center.

  • CFEngine version 3.4.2 or higher. For more information and instructions for downloading and installing CFEngine 3.4.2, see http://www.cfengine.com.

  • Perl 5 must be installed. Note that most Linux distributions already have Perl installed. If Perl is not installed, please see http://www.perl.org/ for more information about downloading and installing Perl.

  • You must have installed Make. (On a Debian-style Linux machine this is usually covered by the build-essential package. On a Redhat-style Linux machine you can install make with the make package.)

Cloning the CFEngine Design Center Repository

If you have git installed, you can check out the entire design-center repository and install cf-sketch from there.

You may choose any directory you want instead of /tmp as the base directory; /tmp is usually a temporary location and you may lose its contents when your system reboots.

# cd /tmp
# git clone https://github.com/cfengine/design-center/
Cloning into design-center...
remote: Counting objects: 2236, done.
remote: Compressing objects: 100% (1173/1173), done.
remote: Total 2236 (delta 1162), reused 2076 (delta 1005)
Receiving objects: 100% (2236/2236), 481.79 KiB | 416 KiB/s, done.
Resolving deltas: 100% (1162/1162), done.
# cd design-center/tools/cf-sketch
# make install

If you don't have git installed, you can download a tar or zip containing the entire repository, unpack it, and install cf-sketch:

# wget -O design-center-master.tar.gz https://github.com/cfengine/design-center/archive/master.tar.gz
# tar zxvf design-center-master.tar.gz 
# cd cfengine-design-master/tools/cf-sketch/
# make install

Customizing the cf-sketch Installation Directory

By default cf-sketch will be installed at /usr/local/bin/cf-sketch and its libraries in /usr/local/lib/cf-sketch/. If you want to install it somewhere else, you can pass the PREFIX variable to make. For example:

# make install PREFIX=$HOME/bin

Running Design Center tools without installing them

You can simply run cf-sketch.pl directly:

# cd cfengine-design-master/tools/cf-sketch/
# ./cf-sketch.pl

That's it! You are ready to go.