1998-01-30 05:56:06 +08:00
|
|
|
This file contains instructions for the installation of HDF5 on
|
|
|
|
Unix-like systems. First, one must obtain a tarball of the HDF5
|
1998-02-18 04:19:13 +08:00
|
|
|
release from the ftp://hdf.ncsa.uiuc.edu/pub/dist/HDF5
|
1998-01-30 05:56:06 +08:00
|
|
|
repository. The files are available in uncompressed tar, gzip, bzip2,
|
|
|
|
and compress formats.
|
1997-09-16 06:19:40 +08:00
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
For those that like to live dangerously and don't like to read ;-) you
|
|
|
|
can do the following:
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-02-18 04:19:13 +08:00
|
|
|
$ tar xf hdf5-1.0.0a.tar
|
|
|
|
$ cd hdf5-1.0.0a
|
1998-01-30 05:56:06 +08:00
|
|
|
$ make test
|
|
|
|
$ make install # Optional
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-04-24 08:02:08 +08:00
|
|
|
Note:
|
|
|
|
For the users of the Intel TFLOPS machine, a special sequence of steps
|
|
|
|
for the install may be found in the file: INSTALL.ascired.
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-04-24 08:02:08 +08:00
|
|
|
=======
|
1998-04-23 01:26:01 +08:00
|
|
|
Step 0: Install optional third-party packages.
|
|
|
|
|
|
|
|
* GNU zlib compression library, version 1.0.2 or later is used for
|
1998-06-23 11:41:22 +08:00
|
|
|
the `deflate' compression method. If libz.a cannot be found then
|
|
|
|
this form of compression is not compiled into the library.
|
1998-04-23 01:26:01 +08:00
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
Step 1. Unpack the source tree.
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-02-18 04:19:13 +08:00
|
|
|
* The tarball will unpack into an hdf5-1.0.0a directory with one of
|
1998-01-30 05:56:06 +08:00
|
|
|
the following commands:
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-02-18 04:19:13 +08:00
|
|
|
$ tar xf hdf5-1.0.0a.tar OR
|
1998-06-23 11:41:22 +08:00
|
|
|
$ gunzip <hdf5-1.0.0a.tar.gz |tar xf - OR
|
1998-02-18 04:19:13 +08:00
|
|
|
$ bunzip2 <hdf5-1.0.0a.tar.bz2 |tar xf - OR
|
1998-06-23 11:41:22 +08:00
|
|
|
$ uncompress -c <hdf5-1.0.0a.tar.Z |tar xf -
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
Step 2. Configure makefiles.
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
* HDF5 uses the GNU autoconf program for configuration. Most
|
|
|
|
installations can be configured by typing just (from the
|
1998-02-18 04:19:13 +08:00
|
|
|
hdf5-1.0.0a directory)
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
$ ./configure
|
|
|
|
|
1998-02-27 02:10:51 +08:00
|
|
|
Note: you may need to say `sh configure'.
|
|
|
|
|
1998-01-31 07:32:28 +08:00
|
|
|
* By default libraries, include files, programs, and documentation
|
1998-04-11 02:30:19 +08:00
|
|
|
are installed (when one says `make install') under
|
|
|
|
/usr/local/lib, /usr/local/include, /usr/local/bin, and
|
|
|
|
/usr/local/man. However, if you want them in some other
|
|
|
|
location you can specify a prefix to use instead of /usr/local.
|
|
|
|
For instance, to install in /usr/lib, /usr/include, /usr/bin,
|
|
|
|
and /usr/man one would say
|
1998-01-30 05:56:06 +08:00
|
|
|
|
|
|
|
$ ./configure --prefix=/usr
|
|
|
|
|
|
|
|
Note: HDF5 can be used without installing it.
|
|
|
|
|
1998-04-11 02:30:19 +08:00
|
|
|
* Early releases of the library will be compiled with some
|
|
|
|
debugging features enabled (see output from configure). The
|
|
|
|
debugging can be turned off by specifying `--disable-debug' as a
|
|
|
|
configure switch. Also, to compile an optimized version of the
|
|
|
|
library one can say `--enable-production'.
|
|
|
|
|
|
|
|
* Old versions of gcc (<2.8.0) may experience register allocation
|
|
|
|
problems on some architectures. If this happens then the
|
|
|
|
`--disable-hsizet' can be given but the resulting library will
|
|
|
|
be unable to handle datasets larger than 4GB.
|
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
* You can also override detection of certain things with
|
|
|
|
environment variables:
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1997-09-16 06:19:40 +08:00
|
|
|
CC Name of the C compiler to use.
|
|
|
|
CFLAGS Alternate C compiler flags.
|
|
|
|
CPPFLAGS Alternate C preprocessor flags.
|
|
|
|
MAKE Name of the make(1) program.
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
For instance it is common to specify the name of the C compiler,
|
|
|
|
C proprocessor flags, and compiler flags (add `env' to the
|
|
|
|
beginning of this command if you're running a csh-like shell)
|
|
|
|
|
|
|
|
$ CC=gcc CPPFLAGS=-DNDEBUG CFLAGS="-Wall -O3" ./configure
|
|
|
|
|
1998-04-11 02:30:19 +08:00
|
|
|
* Settings for compiler flags (and a few other things) can also be
|
|
|
|
specified in config files located in the config directory. The
|
|
|
|
name of the file is the result of running ./bin/config.guess.
|
|
|
|
Use config/BlankForm as a template.
|
1998-01-30 05:56:06 +08:00
|
|
|
|
1998-06-23 11:41:22 +08:00
|
|
|
* The library can print the names, arguments and values, and
|
|
|
|
return value from all API functions. The code that does this is
|
|
|
|
enabled with the `--enable-tracing' configuration switch. In
|
|
|
|
order to actually see tracing output one should set the
|
|
|
|
environment variable HDF5_TRACE to a file descriptor number such
|
|
|
|
as `2'.
|
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
* You can see a list of other configuration options by saying
|
|
|
|
|
|
|
|
$ ./configure --help
|
|
|
|
|
|
|
|
|
|
|
|
Step 3. Compile library, tests, and programs.
|
|
|
|
|
|
|
|
* Build library targets by saying
|
|
|
|
|
|
|
|
$ make
|
|
|
|
|
|
|
|
Note: If you supplied some other make command through the MAKE
|
|
|
|
environment variable in the previous step then use that command
|
1998-01-31 07:32:28 +08:00
|
|
|
instead. The same applies below.
|
1998-01-30 05:56:06 +08:00
|
|
|
|
|
|
|
Note: When using GNU make you can add `-j -l6' to the make
|
1998-04-11 02:30:19 +08:00
|
|
|
command to compile in parallel on SMP machines. Do not give a
|
|
|
|
number after the `-j' since GNU make will turn it off for
|
|
|
|
recursive invocations of make.
|
1998-01-30 05:56:06 +08:00
|
|
|
|
|
|
|
Step 4. Run confidence tests.
|
|
|
|
|
|
|
|
* All confidence tests should be run by saying
|
|
|
|
|
|
|
|
$ make test
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-06-23 11:41:22 +08:00
|
|
|
The command will fail if any test fails, and one will see the
|
|
|
|
word "*FAIL*" in the output.
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-01-31 07:32:28 +08:00
|
|
|
Note: some old versions of make will report that `test is up to
|
1998-01-31 04:17:25 +08:00
|
|
|
date'. If this happens then run `make _test' instead or run
|
1998-01-31 07:32:28 +08:00
|
|
|
`make test' from within the test directory.
|
1997-08-16 00:35:53 +08:00
|
|
|
|
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
Step 5. Install public files.
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
* Install the library, header files, and programs by saying:
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
$ make install
|
1997-08-16 00:35:53 +08:00
|
|
|
|
|
|
|
This step will fail unless you have permission to write to the
|
1997-09-16 06:19:40 +08:00
|
|
|
installation directories. Of course, you can use the header
|
|
|
|
files, library, and programs directly out of the source tree if
|
1998-04-11 02:30:19 +08:00
|
|
|
you like, skipping this step. The directory specified for the
|
|
|
|
--prefix switch (or "/usr/local") must exist, but the directories
|
|
|
|
under it are created automatically by make.
|
1997-09-16 06:19:40 +08:00
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
Step 6. Subscribe to mailing lists.
|
1997-09-16 06:19:40 +08:00
|
|
|
|
1998-01-30 05:56:06 +08:00
|
|
|
* Subscribe to the mailing lists described in the README file.
|
1997-08-16 00:35:53 +08:00
|
|
|
|