[ncl-install] Trying to build ncl_ncarg with Portland Group compilers

Mary Haley haley at ucar.edu
Tue Sep 3 12:00:25 MDT 2013


Hi,

Just for the record, you don't really need ctrans and/or idt unless you want to look at NCGM files. However, I'm guessing that if you had problems building idt because of HDF issues, then you will likely have problems building "ncl".

The problem you are running into is because your HDF include files were not installed where NCL is expecting them.

The default installation location for HDF include files is $HDFPREFIX/include (which is /software/depot/hdf-4.2.9-pgi/include in your case), but this potentially conflicts with NetCDF include files. We instruct users to install the HDF include files in /software/depot/hdf-4.2.9-pgi//hdf/include.  You would also then need to add:

-I/software/depot/hdf-4.2.9-pgi/include/hdf  

to the IncSearch path that you listed below.

Please see:

http://www.ncl.ucar.edu/Download/build_from_src.shtml#HDF4

for information about how to install the HDF include files in a different directory. You need to use the "--includedir" option.

Good luck,

--Mary

On Aug 30, 2013, at 6:22 PM, brown wrap wrote:

> 
> I am trying to build ncl_ncarg-6.1.2. I do get a build, but it doesn't build everything. For example the binary idt builds, but from what I can tell it needs ctrans, which doesn't get built. In looking at the make-output file, there are a half dozen or so aborts because include files are not found:
> 
> PGC-F-0206-Can't find include file hdf/hdf.h (hdf.c: 54)
> PGC-F-0206-Can't find include file hdf/mfhdf.h 
> 
> 
> Here are my search paths:
> 
> #define LibSearch -L/usr/lib64 -L/software/depot/netcdf-4.1.3-pgi/lib -L/software/depot/hdf5-1.8.10-pgi/lib -L/software/depot/hdf-4.2.9-pgi/lib
> #define IncSearch -I/usr/include -I/software/depot/netcdf-4.1.3-pgi/include -I/software/depot/hdf5-1.8.10-pgi/include -I/software/depot/hdf-4.2.9-pgi/include
> 
> I found the two missing .h files, but the compile doesn't find them. Any suggestions? Thanks.
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install



More information about the ncl-install mailing list