Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[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 <leroy@xxxxxxxxxxxxxxxxx>
>Organization: Harvard University
>To: Steve Emmerson <steve@xxxxxxxxxxxxxxxx>
>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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690