[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20040727: Trouble installing netcdf-perl



Stephen,

>Date: Tue, 27 Jul 2004 18:11:54 -0400
>From: Stephen Leroy <address@hidden>
>Organization: Harvard University
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20040727: Trouble installing netcdf-perl
> Keywords: 200407261503.i6QF3iaW011602 netCDF-perl install

The above message contained the following:

> I've attached the make.log from the pic netcdf build.
...

> Making `all' in directory /home/leroy/Packages/netcdf-3.5.1/src/ncdump
> 
> make[2]: Entering directory `/home/leroy/Packages/netcdf-3.5.1/src/ncdump'
> gcc -o ncdump -fPIC  ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a  

It appears from the above compilation command that the netCDF
installation is incompatible with both the perl(1) utility and the
attempted netCDF-Perl installation.  In order to be compatible, the
netCDF package would have to have been built with the
"-D_LARGEFILE_SOURCE" and "-D_FILE_OFFSET_BITS=64" options.  I would
also advise that it be built using the cc(1) compiler instead of
gcc(1).

I suggest that you rebuild the netCDF package using environment
variable settings that include the following:

    CC=cc
    CPPFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG"
    CFLAGS="-fPIC -O"

Then, try to rebuild the netCDF-Perl package.  Remember to do a "make
distclean" as the first step for both packages.

Let me know what you discover.

Regards,
Steve Emmerson