(Solaris users please also see README.Solaris if you have trouble.)

The following commands should build integrit:

    ./configure && make

Then after su'ing to root:

    make install


SECURE INSTALLATION --------------------------------------------------

Please note that if you are doing this for real, you'll need to
compile on a trusted machine (e.g., one with a fresh install of the OS
that hasn't yet been plugged into the network) and copy the compiled
binary to a secure location.

At runtime the binary should be copied back to the localhost or run
directly from the secure location.

Doing otherwise is fine for testing, but it won't be secure, since
there's less security in compiling integrit on an untrusted host, and
no security in leaving the integrit binary on the host your checking.


MISC ----------------------------------------------------------------

Using virtual memory means that less virtual memory is available in
the system.  mmap-ping a file uses no physical memory, but it does use
virtual memory.  If you don't have lots of swap space, then your
system may *think* it's low on memory even if it's just virtual memory
that's being used.

For this reason, it's now possible to limit the amount of virtual
memory integrit uses for mmap.  Use the --with-max-mmap configure
option to specify in bytes the biggest file size you want mmap'ed.
(mmap is used only for reading databases, not for writing.)

The default max is 10485760 bytes (ten megabytes) -- you might even
want to raise it.  Use a max of zero to disable mmap-ing.


TROUBLESHOOTING ------------------------------------------------------

This shouldn't be necessary since integrit stopped using openssl, but
if you have a required library in a place your compiler wouldn't
normally look, e.g. "/tmp/foo", you can provide that information to
configure like so:

 LDFLAGS="-L /tmp/foo/lib" ./configure

... and to say where the headers are too ...

 LDFLAGS="-L /tmp/foo/lib" CPPFLAGS="-I /tmp/foo/include" ./configure

... for a shell with Bourne-shell syntax.


If you have trouble during "make", try using GNU make.  Systems
sometimes have GNU make installed as "gmake".

Solaris users please read "README.Solaris".
