This is my personal stash of build scripts. I hope you find them useful.

These scripts still have my username in the install locations - you will have to change them. These are not meant to be perfect solutions, but they do help demystify things a bit.

These are the ones I use with gfortran on OSX

This the order I would install them

  1. Build_udunits_gnu.csh
  2. Build_zlib_gnu.csh (may not be needed if HDF5 builds OK)
  3. Build_HDF5_gnu.csh
  4. Build_netCDF_gnu.csh -or- Build_netCDF_2step_gnu.csh
  5. Build_ncview_gnu.csh
  6. Build_nco_gnu.csh

Other

These are in no particular order

I am in the habit of downloading the tar files into a ~/src directory - which is where I keep my build scripts. I check each tarfile to make sure it expands into a directory with the software name and version in it.

Then, when I go to build the software - I can 'cd' into the software directory (as deep as necessary) and then run the scripts using a relative path to the appropriate src/Build_*_gnu.csh script. For example:

0[1058] cisl-navarre:~/src % ls -1F
Build_HDF-EOS_gfortran.csh*
Build_HDF4_gnu.csh*
Build_HDF5_gnu.csh*
Build_JasPer_gnu.csh*
Build_SVN.csh*
Build_jpeg6b_gnu.csh*
Build_nco.csh*
Build_ncview.csh*
Build_ncview_gnu.csh*
Build_netCDF_absoft.csh*
Build_netCDF_gnu.csh*
Build_netCDF_pgi.csh*
Build_netCDF_xlf_osx.csh*
Build_openmpi.csh
Build_udunits_gnu.csh*
Build_zlib_gnu.csh*
HDF-EOS2.16v1.00/
R-2.9.2/
README
archive/
genoverlay/
hdf-4.2.5/
hdf5-1.8.4-patch1/
hdf5-1.8.7/
jasper-1.900.1/
jpeg-6b/
modules-3.2.6/
nco-3.9.1/
nco-4.2.1/
ncview-1.93g/
ncview-2.1.1/
netcdf-3.6.3/
netcdf-4.1.1/
netcdf-4.1.3/
openjpeg-1.5.0/
udunits-1.12.4/
udunits-2.1.24/
zlib-1.2.3/
zlib-1.2.3.tar
zlib-1.2.5/