Wednesday, August 19, 2015

How to build perkun

In order to build Perkun one has to install first bison and flex. On my Fedora Core 21 it requires following instructions:

$ yum install bison.x86_64

and

$ yum install flex.x86_64 

Both these commands need to be given as the root user. Then one has to download the perkun-0.0.7.tar.gz from http://sourceforge.net/projects/perkun/. The tarball has to be unpacked and untared (as any user):

$ gunzip perkun-0.0.7.tar.gz 
$ tar -xvf perkun-0.0.7.tar 

This will create a directory perkun-0.0.7. Let us enter into it:

$ cd perkun-0.0.7

Let us first configure the project:

$ ./configure 

The "configure" script will create the makefiles. Then we need to compile the project:

$ make 

If no errors were encountered then we can install the project (as the root user):

$ make install

After it is installed we can optionally run the tests:

$ make check 

Once the Perkun is installed it should be possible to call it:

$ perkun
usage: perkun <file>

In order to use it we should create a file containing a valid Perkun specification.

1 comment: