Installation
libfid has been designed to be as lightweight and portable as possible (portable among UNIX-like
systems, that is). It has been compiled and installed successfully on various 32 and 64 bit
platforms using different C compilers, including several Linux distributions, Solaris 8 and
later, FreeBSD 4.11 and later, NetBSD 3.1.1 and later, OpenBSD 4.2, and Mac OS X. Use
something like
$ ./configure [options] && make && make install
to configure, build, and install the library. Optionally, run make check before installation to run
the test suite. All tests should pass with no error, except for the first one which will be skipped
unless you have downloaded the extra test suite data, and extracted it below the source path of libfid.
By default, make install will install the library below /usr/local/.
A typical command for configuring libfid using gcc for a 64 bit platform looks like this:
$ ./configure CFLAGS='-O3 -m64'
Read the output of ./configure --help to learn more about configuration options. Please also take a look
into the library documentation on how to use --enable-memprof before using this option (see section "How
to use libfid in your programs" on the title page, then in the list below "Optionally:").