This post provides instructions on building HDF5 1.8 on OS X with Absoft Pro Fortran 11.1 and later. These instructions were developed and tested on OS X 10.5.8 using the XCode 3.1.4 command line development tools.
The HDF5 technology suite is designed to organize, store, discover, access, analyze, share, and preserve diverse, complex data in continuously evolving heterogeneous computing and storage environments.
PRE-BUILT VERSIONS OF HDF 5 1.8 Absoft Pro Fortran 2012 (v11.5) includes a pre-built package for HDF 5 1.8.7. The installer for this package is located in the Additional Fortran Libraries folder on your Absoft Pro Fortran 2012 (v11.5) CD-ROM or electronic delivery disk image.
Absoft Pro Fortran 11.1 includes a pre-built package for HDF 5 1.8.5. The installer for this package is located in the Additional Fortran Libraries folder on your Absoft Pro Fortran 11.1 CD-ROM or electronic delivery disk image.
DOWNLOADING THE REQUIRED PACKAGEThe HDF 5 1.8 package is available at this site
http://www.hdfgroup.org/HDF5/. At the time this post was last updated, the current stable release for HDF 5 was 1.8.8. It was released on 11/15/2011. The instructions below use the source code package named hdf5-1.8.8.tar.gz.
CREATING THE HDF 5 SOURCE TREEExtract the HDF 5 source code with the following command:
tar -xzvf hdf5-1.8.8.tar.gz
This will create a directory named hdf5-1.8.8 in the current working directory.
MAKING A TARGET BUILD DIRECTORYIt is possible to configure and build HDF5 directly inside the source directory. However, creating a separate build directory makes reconfiguring or maintaining more than one build (for example 32 and 64 bit builds) easier. The instructions below assume that separate build directories have been created in same the directory which contains the HDF5 source directory using these commands:
mkdir hdf5-32build
mkdir hdf5-64build
CONFIGURING, BUILDING AND INSTALLING 32 BIT HDF 5Use following commands configure, build and install 32 bit HDF 5 with Absoft Pro Fortran 11.1 and later. These commands configure HDF 5 to install into /opt/hdf532. If you want to install to a different location, replace /opt/hdf532 in the --prefix= argument to the configure command. NOTE: these commands assume you have established the Absoft environment by sourcing the appropriate commands from your Absoft directory.
cd hdf5-32build
../hdf5-1.8.8/configure --prefix=/opt/hdf532 --enable-shared=no --enable-fortran F9X=af95 CFLAGS=-m32 FFLAGS=-m32
make
make install
CONFIGURING, BUILDING AND INSTALLING 64 BIT HDF 5Use following commands configure, build and install 64 bit HDF 5 with Absoft Pro Fortran 11.1 and later. These commands configure HDF 5 to install into /opt/hdf564. If you want to install to a different location, replace /opt/hdf564 in the --prefix= argument to the configure command. NOTE: these commands assume you have established the Absoft environment by sourcing the appropriate commands from your Absoft directory.
cd hdf5-64build
../hdf5-1.8.8/configure --prefix=/opt/hdf564 --enable-shared=no --enable-fortran F9X=af95 CFLAGS=-m64 FFLAGS=-m64
make
make install
FURTHER INFORMATIONFurther information on building and using HDF 5 can be found at the HDF website.