|
2.5 (Source distribution only): compile the source
The downloaded source should be unpacked using gunzip and tar:
gunzip adf2006.01.src.tgz
tar -xf adf2006.01.tar
The result will be a new adf2006.01 directory containing the sources.
After unpacking and setting your environment properly, you should run the configure
script. This script is located in the $ADFHOME/Install directory, and should be executed
from the ADFHOME directory. It takes care of creating a bin directory, populating it with
a couple of required scripts, and creating the Makeflags and settings files you need
to compile the ADF sources.
→Run Install/configure
Example:
cd $ADFHOME
Install/configure
... answer the questions asked by the configure script ...
Instead of answering questions you can run configure with command line options.
The possible options are:
-h with this option configure will print the system name, processor type
and, for Linux, the GLIBC version. It will also print the default machine name used
internally by ADF and a list of known parallel implementations for this combination,
as well as a list of possible optional parameters, if any (see below).
-p par specifies the parallel implementation to use.
The list of possible par values varies per platform and can be obtained by
running configure with the -h option. The default is "serial".
-n ncpus specifies the maximum number of processes on which you can later run ADF
and other parallel programs from the package. The default value of 128 is sufficient in
most cases.
-o option specifies an optional parameter if availabble. For example, on IBM AiX
you can specify -o 64 to configure a version with 64-bit addressing.
Next unpack the binary distribution. This installs a couple of programs in the $ADFBIN
directory that are not included in the source distribution.
gunzip adf2006.01.bin.tgz
tar -xf adf2006.01.bin.tar
Next, you can compile and link the ADF sources by executing the yam (Yet Another Make) script
created in the $ADFBIN directory by configure.
cd $ADFHOME
$ADFBIN/yam
After a while, depending on the speed of your computer, ADF should have been compiled and
ready to use, just as if you had installed the precompiled executables.
|