Locked History Actions


Installing the baofit package


The following standard packages are required for building baofit:

The following DeepZot packages are required for building cosmo:

If you are not sure if these are available, just go ahead with the next step which will check for these libraries in standard places.


To download the package, you can either checkout the code using git (recommended for keeping up to date and contributing, but requires that you have installed git):

git clone git://github.com/deepzot/baofit.git
cd baofit

Otherwise, download and unpack a tagged or snapshot tarfile, for example:

curl -k -L https://github.com/deepzot/baofit/tarball/master | tar zx
cd deepzot-baofit-*

Configure and Build

The package uses the GNU autoconf/automake tools for portable installation on most platforms:

cd build
../configure --prefix=/usr/local

You should now have the library and programs built in the current build directory.

In case you installed the likely and cosmo packages (or any other dependencies) to a non-system directory, you will need to identify these on the configure command, for example:

../configure --prefix=$HOME/deepzot CPPFLAGS="-I$HOME/deepzot/include" LDFLAGS="-L$HOME/deepzot/lib"

See the `likely` installation page for more details on installing to non-system directories.

Install to System Directories

To install the package's programs, library (static and shared), and public header files into the prefix directory you specified above, use (you can omit sudo if installing to a non-system directory):

sudo make install

The install step is not strictly necessary if you will always be working within the build directory, but is required to build other packages that depend on the likely package.

In case you installed to a non-system directory above, you will need to add your install directory's bin directory to your search path (or else fully specify this path).

To use the library from other C++ projects, add the master header to your source files:

#include "baofit/baofit.h"

and add -lbaofit to your link command. If you installed to a non-system directory, you will additionally need to add -I<prefix>/include to your CCFLAGS and -L<prefix>/lib to your LDFLAGS.