This section will build HDF4, HDF5, hdfeos, hdfeos, netcdf and a few supporting libraries, The code is built with position independent code settings (-fPIC) so the libraries can be used in a shared environment (i.e. shareable objects) . You can skip this section if your site already has these libraries installed. Otherwise, go to the software directory (SOFTWAREDIR ) created in stage 1.
chmod u+x buildhdfnetcdf
edit your environment variables, INCLUDE, LD_LIBRARY_PATH and LIBRARY_PATH in your login scripts (.bashrc) and apply the settings.