2012-08-26 08:39:24 +00:00
|
|
|
Copyright (c) 2012 Moinak Ghosh
|
|
|
|
|
|
|
|
Basic Installation
|
|
|
|
==================
|
|
|
|
The simplest process to build and install this utility is:
|
|
|
|
|
|
|
|
./config
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
|
|
|
Strictly speaking the 'make install' step is not required to
|
|
|
|
run the utility as it is a single stand alone program for now.
|
|
|
|
|
|
|
|
The config script controls various compile time parameters and
|
|
|
|
generates the actual Makefile. You can get a short description
|
|
|
|
of all the options by running:
|
|
|
|
|
|
|
|
./config --help
|
|
|
|
|
2012-08-27 16:21:55 +00:00
|
|
|
NOTE: Basic Installation does not enable support for Libbsc, a
|
|
|
|
new block-sorting compressor (similar to but better than
|
|
|
|
Bzip2). See below for details.
|
|
|
|
|
|
|
|
Custom Installation
|
|
|
|
===================
|
|
|
|
The options to the config script are detailed below. Note that this is
|
|
|
|
not the usual GNU Autoconf script.
|
2012-08-26 08:39:24 +00:00
|
|
|
|
|
|
|
./config [<options>]
|
|
|
|
|
|
|
|
<options> can be one of the following:
|
|
|
|
|
|
|
|
--prefix=<val> The installation prefix.
|
|
|
|
This is set to /usr by default. However alternate
|
|
|
|
prefix needs to eb used during packaging.
|
|
|
|
|
|
|
|
--enable-debug Enable debug mode compilation.
|
2012-08-27 16:21:55 +00:00
|
|
|
This reduces the compiler optimization level to
|
|
|
|
basic and taks out all the loop optimization flags.
|
|
|
|
This is primarily to aid debugging.
|
2012-08-26 08:39:24 +00:00
|
|
|
|
|
|
|
--disable-allocator Disable use of internal memory allocator mechanism.
|
2012-08-27 16:21:55 +00:00
|
|
|
The internal allocator can be totally disabled by
|
|
|
|
setting this build time flag. It is also possible
|
|
|
|
to dynamically disable the allocator by setting the
|
|
|
|
following env variable:
|
2012-08-26 08:39:24 +00:00
|
|
|
ALLOCATOR_BYPASS=1
|
|
|
|
|
|
|
|
--enable-debug-stats Enable printing of some verbose debug info.
|
|
|
|
This at present shows some info related to Dedupe
|
|
|
|
efficiency.
|
|
|
|
|
2012-08-27 16:21:55 +00:00
|
|
|
--with-libbsc=<path_to_libbsc_source>
|
|
|
|
Enable support for libbsc (See: libbsc.com). Full
|
|
|
|
path to the libbsc source tree must be provided. It
|
|
|
|
links the library statically.
|
|
|
|
|
2012-08-26 08:39:24 +00:00
|
|
|
--help Display the help message.
|
|
|
|
|
2012-08-27 16:21:55 +00:00
|
|
|
Steps for building with libbsc support
|
|
|
|
======================================
|
|
|
|
1) Download libbsc source from: http://libbsc.com/ . Click on the
|
|
|
|
"Download TAR Ball" button. Downloading the 3.1.0 release from the
|
|
|
|
Github project download page will Not work.
|
|
|
|
|
|
|
|
2) Extract the gzippped tarball. It will create a directory for example:
|
|
|
|
IlyaGrebnov-libbsc-0b12f29
|
|
|
|
|
|
|
|
3) Now cd into the pcompress directory and execute the config script
|
|
|
|
with the full path to the libbsc source directory. For example:
|
|
|
|
|
|
|
|
./config --with-libbsc=/full/path/to/IlyaGrebnov-libbsc-0b12f29
|
|
|
|
|
|
|
|
4) Now run make in the pcompress directory. This will also run make in
|
|
|
|
the libbsc source directory to build it.
|
|
|
|
|
|
|
|
|