2.6. Compiling from Source

Firewall Builder can be compiled and works on the following OS and distributions:

  • Debian Linux (including Ubuntu)

  • Mandrake Linux

  • RedHat Linux

  • SuSE Linux

  • Gentoo Linux

  • FreeBSD

  • OpenBSD

  • Mac OS X

  • Solaris

To compile from source, first download dependencies for your platform:

For RedHat-based systems:

  • automake

  • autoconf

  • libtool

  • libxml2-devel

  • libxslt-devel

  • net-snmp-devel

  • qt

  • qt-devel

  • qt-x11

You may need to install packages elfutils-libelf and elfutils-libelf-devel (libelf on SuSE), otherwise libfwbuilder won't pick up net-snmp library even if it is installed.

For Debian-based systems:

  • automake

  • autoconf

  • libtool

  • libxml2-dev

  • libxslt-dev

  • libsnmp-dev

  • libqt4-core

  • libqt4-dev

  • libqt4-gui

  • qt4-dev-tools

Next, download source archives from SourceForge (libfwbuilder-3.0.0.tar.gz and fwbuilder-3.0.0.tar.gz, for example) and unpack them somewhere. Then build as follows:


cd libfwbuilder-<version_number>
./autogen.sh
make
make install

cd /fwbuilder-<version_number>
./autogen.sh
make
make install

Compilation may require other packages for RedHat and SuSE: If you get errors that refer to missing autoconf macros while running autogen.sh for fwbuilder, check if your system has RPM gettext-devel. You may need to add other "development" RPMs besides these, but these two are often forgotten.

The configure scripts for both libfwbuilder and fwbuilder tries to find your QT4 installation in several more-or-less standard places. However, if you installed QT in a directory where the script can't find it, you can provide the path to it using the --with-qtdir option to script autogen.sh. This looks as follows:


cd libfwbuilder-<version_number>
./autogen.sh --with-qtdir=/opt/qt4
make
make install
      
cd /fwbuilder-<version_number>
./autogen.sh --with-qtdir=/opt/qt4
make
make install
    

By default script configure assumes prefix="/usr/local" and installs libfwbuilder libraries in /usr/local/lib and binaries in /usr/local/bin. Make sure /usr/local/lib is added to your LD_LIBRARY_PATH environment variable or to the /etc/ld.so.conf configuration file, otherwise the program won't find dynamic libraries there. Likewise, /usr/local/bin needs to be in your PATH.

You can install libraries and binaries in a different place by specifying new prefix as follows:


./autogen.sh --prefix="/opt"
    

This will install libraries in /opt/lib and the program in /opt/bin.

 

Copyright © 2000-2008 NetCitadel, LLC. All rights reserved.
 Using free CSS Templates.