Re: Problem installing ncar/ncl

From: Rick Grubin <grubin_at_nyahnyahspammersnyahnyah>
Date: Thu, 8 May 2008 09:06:21 -0600

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

_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Thu May 08 2008 - 09:06:21 MDT

This archive was generated by hypermail 2.2.0 : Thu May 15 2008 - 09:08:53 MDT