Page tree

The license could not be verified: License Certificate has expired!

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

How do I install HDF (4)?

Optional:   Set environment variables to point to the correct compilers. For example:

   setenv CC "/opt/SUNWspro/bin/cc -xarch=v9"
   setenv F77 "/opt/SUNWspro/bin/f90 -xarch=v9"

Also, remember that HDF4 builds with Fortran by default. Particularly on systems that support both 32-bit and 64-bit, HDF may pick up the wrong compiler.

Solaris ONLY:   Make sure that your PATH variable points to the correct ar and tr tools:

    tr:  /usr/ucb/tr
    ar:  /usr/ccs/bin/ar

Following are the commands to build HDF. The JPEG and ZLIB libraries are required. You must include them when configuring. The SZIP library is optional.

  ./configure --with-zlib=/path_to_ZLIB_install_directory

  gmake >& gmake.out
  gmake check >& check.out
  gmake install

To disable fortran:

  ./configure --disable-fortran  ... 

To enable shared libraries:


   --enable-shared --disable-fortran

Fortran shared libraries are not supported. Shared libraries are disabled by default.

If you encounter problems where configure can't find the JPEG or ZLIB library, but you know that you have specified the location properly, then it may have found more than one JPEG/ZLIB installation and is confused.