For Java installation instructions, see doc/java_install. Prior to building libabac you may need to install flex, bison, and GNU readline library you must install YAP and libstrongswan Please check doc/dependencies for other software dependencies Download yap-6.2.2 from www.dcc.fc.up.pt http://www.dcc.fc.up.pt/~vsc/Yap/yap-6.2.2.tar.gz $patch -p0 -t -i yap6_2_2_patch_1 (Patching for FreeBSD or 64bits machines, patch file can be found in libABAC's doc directory) $./configure --enable-dynamic-loading --enable-use-malloc=yes $make $make library $sudo make install_library $sudo make install (Note: If you ever run into the OOOPS message when installing Yap, manually clear out all traces of Yap from your /usr/local especially /usr/local/share) Download strongswan-4.6.4 from strongswan.org: http://download.strongswan.org/strongswan-4.6.4.tar.bz2 FreeBSD users: add --enable-kernel-pfkey --enable-kernel-pfroute --disable-kernel-netlink --disable-tools --disable-scripts --disable-pluto --with-group=wheel to strongswan ./configure Linux users: add --disable-gmp --enable-openssl to strongswan ./configure to avoid long credential creation times. The entropy sources libstrongswan uses by default gather entropy slowly on Linux. These flags allow it to gather entropy from the same sources as openssl, which is noticeably faster. The internal strongswan libraries and plugins are installed in /usr/local/lib/ipsec by default unless --with-ipseclibdir and --with-plugindir are set otherwise. Mac OS X users: (Victor) add --enable-kernel-pfkey --enable-kernel-pfroute --disable-kernel-netlink --disable-tools --disable-scripts --disable-pluto --with-group=wheel and also prepend with following if applicable, env CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" $tar xjvf strongswan-4.6.4.tar.bz2 $cd strongswan-4.6.4 $# see note above about configure flags $./configure --enable-monolithic $cd src/libstrongswan $make && sudo make install Be sure to make note of the directory into which you've untarred strongswan-4.6.4.tar.bz2. You will use this in the next step. BUILDING LIBABAC FreeBSD users will need to install flex-2.5.35 or greater from ports and add --with-extra-includes=/usr/local/include --with-flex=/usr/local/bin/flex, adjust as needed on ./configure line in addition to --with-strongswan=... MAC OS X (victor) users needs to add these flags CFLAGS="-I/opt/local/include" CXXFLAGS="-I/opt/local/include" CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" and --with-flex=/usr/bin/flex, adjust as needed $STRONGSWAN_SRC_DIR=path/to/strongswan-4.6.4 $STRONGSWAN_LIB_DIR=/usr/local/lib/ipsec $./autogen.sh $./configure --with-strongswan=$STRONGSWAN_SRC_DIR --with-strongswan-ld-path=$STRONSWAN_LIB_DIR $make $sudo make install