Compiling from a source tarball
Compiling from a debian source package
Compiling from a RPM source package
The instructions on this page describe how you compile the frePPLe source code into binaries. After compilation you need to return to the installation and configuration steps outlined on the previous page.
Compiling from source tarball
This section describes the generic steps you need to build frePPLe from the source code.
FrePPLe uses a very standard build process, based on the automake suite.
- Download the source code.
The released version is available at http://sourceforge.net/projects/frepple/files/ - Update your system with the development software packages.
- gcc, v3.4 or higher
Front end for the GNU compiler suite. - gcc-c++, compatible with gcc release
GNU C++ compiler. - xerces-c, 3.0 or 3.1
Xerces is a validating XML parser provided by the Apache Foundation.
You need to install the libraries as well as the development libraries. - python v2.6 or v2.7
Python is a modern, easy to learn interpreted programming language.
See http://www.python.org for more information. The language is used to a) run the test suite, b) script custom logic in frePPLe and c) to run the web application framework Django.
You need to install the language as well as the development libraries.
- gcc, v3.4 or higher
- Issue the command ‘./configure‘ in the installation directory to specify the build options and detect the specifics of your platform.
Use the command ‘./configure –help’ to see the list of available options. - Issue the command ‘make all‘ to compile the code.
- Optionally, issue the command ‘make check‘ to run the test suite.
Not all tests are currently passing, so you shouldn’t be worried about a couple of failures. - Issue the command ‘make install‘ to install the files.
- You can issue the command ‘make clean‘ to free the disk space used during the build and test phases.
Compiling from a debian source package
The steps to work with such packages are fully generic, and not specific to frePPLe:
- Install the django package as described on the previous page.
- Install the dpkg-dev package and all prerequisite packages for frepple:
apt-get install dpkg-dev debhelper cdbs autotools-dev python-dev libxerces-c-dev graphviz libtool
- Build the source directory.
Expand all files listed in the .dsc file. - Build the package in the source directory.
dpkg-buildpackage -B
Compiling from a RPM source package
The steps to work with such packages are fully generic, and not specific to frePPLe:
- Install the django package as described on the previous page.
- Install the rpmbuild package:
yum install rpmbuild
- Create a build directory structure:
rpmdev-setuptree
- Install the source RPM file:
This will create files in the SOURCES directory of your RPM building directory tree, and a .spec file in the SPECS directory.rpm -i frepple-2.0-1.src.rpm
- Build the RPM:
Go the SPECS directory and give the command to build the RPM:cd /home/your_userid/rpm/SPECS rpmbuild -bb frepple.spec