[ncl-install] Problem installing ncar/ncl

Rick Grubin grubin at ucar.edu
Thu May 8 09:06:21 MDT 2008


Hi Fabrizio

>    I'm trying to install ncl/ncar on Intel core 2 quad CPU (Q6600  
> 2,40GHz) with 4 Gb ram , using Intel compilers ifort + icc.
> After I've set this few environment setting
>
> export CC=icc
> export FC=ifort
> export F90=ifort
> export F77=ifort
> export CXX=icpc

These look fine; do you have any other environment variables set,  
such as CFLAGS, FFLAGS, ... ?
> When I launch "make everything" I've get the error :
>
> /usr/local/lib/libgrib2c.a(dec_png.o): In function `dec_png':
>
> dec_png.c:(.text+0x97): undefined reference to  
> `png_create_read_struct'
> dec_png.c:(.text+0x10e): undefined reference to `png_set_read_fn'
> dec_png.c:(.text+0x11f): undefined reference to `png_read_png'
> dec_png.c:(.text+0x12c): undefined reference to `png_get_rows'
> dec_png.c:(.text+0x167): undefined reference to `png_get_IHDR'
> dec_png.c:(.text+0x2ce): undefined reference to  
> `png_destroy_read_struct'
> dec_png.c:(.text+0x313): undefined reference to  
> `png_destroy_read_struct'
> dec_png.c:(.text+0x340): undefined reference to  
> `png_destroy_read_struct'
> dec_png.c:(.text+0x36b): undefined reference to  
> `png_destroy_read_struct'
> make[4]: *** [ncl] Error 1
>

These messages are telling you that, when trying to link in the GRIB2  
decoding software, that
software was either not built with support for 'png' or you've built  
and installed the 'png' software
but the link process cannot find it.

The GRIB2 decoding software is dependent upon having the 'jpeg'  
software library installed, and if
defined, the 'png' software library installed.  In the makefile for  
the GRIB2 decoding software is a
definition that looks like:

	DEFS=-DUSE_JPEG2000 -DUSE_PNG

It may not have the "-DUSE_PNG" component, if you do not want to  
decode GRIB2 data that has
been compressed using the 'png' software.  If, however, you are going  
to build in 'png' (de)compression,
you'll need to build and install that software.  Please see:

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

for a discussion on the requisite software, and how to build and  
install it.

----	
Rick Grubin      NCAR/TDD/CISL/VETS
Visualization + Enabling Technologies
grubin at ucar.edu             303.497.1832




More information about the ncl-install mailing list