1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
BUILD/INSTALL INSTRUCTIONS
First, note well that dieharder REQUIRES the Gnu Scientific Library
(GSL) and the Gnu Build Tools (GBT) for its build, and it is strongly
recommended that they be up to date versions. This precludes building
or running dieharder on a truly old linux (or other) distribution. In
practical terms, if your linux distribution is older than two years
(say, pre-FC 4) it is unlikely to build smoothly without signicant work.
For many of you reading this, then, my first instruction is "update to a
relatively modern build environment that contains a contemporary GSL".
Once this is done, the build SHOULD proceed easily enough. Enter the
toplevel build directory and enter:
./autogen.sh
which should set up the GBT build. Then:
./configure --prefix=/usr
for a traditional FHS-compliant build and install, or enter a full path
such as:
./configure --prefix=$(HOME)/usr
for an alternative install into your own home directory. Be aware that
the application is dynamically linked and will not work unless the
libdieharder library is installed and made available to the dynamic
linker by running ldconfig (for the FHS install) or the use of
LD_LIBRARY_PATH=$(HOME)/usr/lib
export LD_LIBRARY_PATH
for a private one. Finally, to just build the software in place, enter:
make
or to build it and install it on the path defined in the configure step
above, enter:
make install
This last step will need to be done as root if the install is into a
root-owned directory such as /usr and followed as noted by rerunning
ldconfig.
RPM BUILD INSTRUCTIONS
There are two ways one should be able to build a functional set of RPMs
for the dieharder user interface application and libdieharder, the core
library of RNG testing routines. The easiest, when it works, is to
download the source rpm and use
rpmbuild --rebuild dieharder-whatever-src.rpm
where "whatever" should of course be the version of the source rpm you
seek to rebuild. In order for this to work, you will need something
like the following in ~/.rpmmacros:
%_topdir /home/rgb/Src/rpm_tree
# Don't do fascist build policy -- unpackaged files ignored.
%define _unpackaged_files_terminate_build 0
where the topdir macro should point to a valid RPM build tree.
Alternatively, once you have run the configure step above using
--prefix=/usr (only) you should be able to build the rpms using:
make rpm
where once again a suitable rpm tree must exist and be pointed to in
.rpmmacros.
DEBIAN PACKAGE BUILD INSTRUCTIONS
Are pending, but are under active development and should appear in this
space soon.
|