Version 5 (modified by 12 years ago) ( diff ) | ,
---|
HDF Library Installation
HDF4 is compiled using the GCC compiler suite, but HDF5 requires the Intel compilers. AstroBEAR was developed using version 9.0 of the Intel compiler suite, but anyone using a different version should change the references to Intel 9.0 compilers to the correct version.
Installing the HDF4 Libraries
The following script can be used to download and install the HDF4 libraries. Note that make install
must be run with root
privileges.
wget ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/HDF4.2r1.tar.gz tar -xzvf HDF4.2r1.tar.gz cd HDF4.2r1 export LDFLAGS=-lm # The HDF4 package needs help finding math library ./configure -enable-fortran -prefix=/usr/local/hdf make make install
Installing the HDF5 Libraries
The following script can be used to download and install the HDF5 libraries. Note that make install
must be run with root
privileges.
export FC=ifort;export F77=ifort;export F9X=ifort export CXX=icpc;export CXXCPP="icpc -E" export CC=icc;export CPP="icc -E" wget ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-1.8.2.tar.gz tar -xzvf hdf5-1.8.2.tar.gz cd hdf5-1.8.2 CFLAGS=-fPIC ./configure -prefix=/usr/local/hdf5 --enable-fortran make make install
Note:
See TracWiki
for help on using the wiki.