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

Re: 19990818: trouble installing netCDF 3.4 on RedHat Linux 6.0



>To: address@hidden
>From: Dylan Woon <address@hidden>
>Subject: trouble installing netCDF
>Organization: Florida State University
>Keywords: 199908180039.SAA25798 netCDF 3.4 RedHat 6.0

Hi Dylan,

> I'm having trouble installing the netCDF 3.4 package on Red Hat LINUX 6.0.
> Could you give me a clue as to what's wrong?  Any help would be
> appreciated.  Below is a transcript of my attempt to install...
> 
> [dwoon@bld8r23w1 src]$ ls
> COMPATIBILITY  VERSION        configure     macros.make      ncdump
> INSTALL        aclocal.m4     configure.in  macros.make.def  ncgen
> MANIFEST       config.cache   cxx           macros.make.in   nctest
> Makefile       config.log     fortran       man              nf_test
> README         config.status  libsrc        nc_test          rules.make
> [dwoon@bld8r23w1 src]$ pwd
> /home/dwoon/netcdf-3.4/netcdf-3.4/src
> [dwoon@bld8r23w1 src]$ make all
> make[1]: Entering directory `/home/dwoon/netcdf-3.4/netcdf-3.4/src'
> 
> Making `all' in directory /home/dwoon/netcdf-3.4/netcdf-3.4/src/libsrc
> 
> make[2]: Entering directory `/home/dwoon/netcdf-3.4/netcdf-3.4/src/libsrc'
> ar cru   libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o
> putget.o string.o v1
> hpg.o v2i.o var.o
> ranlib libnetcdf.a
> make[2]: Leaving directory `/home/dwoon/netcdf-3.4/netcdf-3.4/src/libsrc'
> 
> Returning to directory /home/dwoon/netcdf-3.4/netcdf-3.4/src
> 
> make[1]: Leaving directory `/home/dwoon/netcdf-3.4/netcdf-3.4/src'
> make[1]: Entering directory `/home/dwoon/netcdf-3.4/netcdf-3.4/src'
> 
> Making `all' in directory /home/dwoon/netcdf-3.4/netcdf-3.4/src/fortran
> 
> make[2]: Entering directory
> `/home/dwoon/netcdf-3.4/netcdf-3.4/src/fortran'
> cc -c -O -I../libsrc  -DNDEBUG fort-attio.c
> In file included from ncfortran.h:13,
>                  from fort-attio.c:6:
> cfortran.h:151: #error "cfortran.h:  Can't find your environment among:\
>     - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...)     \
>     - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000     \
>     - VAX   VMS CC 3.1 and FORTRAN 5.4.                                  \
>     - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0.                           \
>     - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2          \
>     - Apollo DomainOS 10.2 (sys5.3) with f77 10.7 and cc 6.7.            \
>     - CRAY                                                               \
>     - NEC SX-4 SUPER-UX                                                  \
>     - CONVEX                                                             \
>     - Sun                                                                \
>     - PowerStation Fortran with Visual C++                               \
>     - HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730    \
>     - LynxOS: cc or gcc with f2c.                                        \
>     - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77.             \
>     -            f77 with vcc works; but missing link magic for f77 I/O. \
>     -            NO fort. None of gcc, cc or vcc generate required names.\
>     - f2c    : Use #define    f2cFortran, or cc -Df2cFortran             \
>     - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran          \
>     - Absoft UNIX F77: Use #define AbsoftUNIXFortran or cc
> -DAbsoftUNIXFortran"
> make[2]: *** [fort-attio.o] Error 1
> make[2]: Leaving directory `/home/dwoon/netcdf-3.4/netcdf-3.4/src/fortran'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/home/dwoon/netcdf-3.4/netcdf-3.4/src'
> make: *** [fortran/all] Error 2

If you want to build the Fortran interface for netCDF on Linux, you
need to follow the instructions in the INSTALL file for Linux,
specifically you need to set the required environment variables
*before* invoking the configure script, and you need to use fort77,
g77, or pgf90 instead of f77 as your Fortran compiler, with the
corresponding environment settings.  Either see the INSTALL file in
the top level of your netCDF 3.4 sources, or the more recent version
that explains how to set environment variables from various shells at

  http://www.unidata.ucar.edu/packages/netcdf/INSTALL

I just tried the following settings on a RedHat Linux system, and it
seemed to work fine:

 CPPFLAGS="-DNDEBUG -Df2cFortran"
 CFLAGS=-O
 FC=/usr/bin/fort77
 FFLAGS="-O -Nx400 -w"

Before you try to rebuild, make sure you follow the instructions in
the INSTALL file about removing the "config.cache" file and running
"make clean".  Please let us know if you still have problems.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu