[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20020322: NetCDF on RedHat 7.2 system?
- Subject: 20020322: NetCDF on RedHat 7.2 system?
- Date: Fri, 22 Mar 2002 09:01:23 -0700
>From: Robert Flanigan <address@hidden>
>Organization: New Mexico Turtle Ranch
>Keywords: 200203221549.g2MFnwa11863 netCDF RedHat 7.2
Robert,
> I am trying to install WRF and need the NetCDF package installed
>first. While doing the install I get a fortran compile error in the
>make process and do not have a clue what is causing it.
>Can U help?
Yes. We build successfully on RedHat 7.2 here at the UPC.
>A. [root@tcwest0 src]# uname -a
>Linux tcwest0.arl.army.mil 2.4.9-31smp #1 SMP Tue Feb 26 05:55:20 EST
>2002 i686 unknown
>B. [root@tcwest0 src]# cat VERSION
>3.5.0
>C. [root@tcwest0 src]# which g77 gcc g++
>/usr/bin/g77
>/usr/bin/gcc
>/usr/bin/g++
>
>Before ./configure I do:
>
>[root@tcwest0 src]# . ./set_NetCDF_environment
>[root@tcwest0 src]# cat set_NetCDF_environment
># set_NetCDF_environment
>export CC="/usr/bin/gcc"
>export CFLAGS="-O"
>export CPPFLAGS="-DNDEBUG"
>export FC="/usr/bin/g77"
>export FFLAGS="-O"
>export CXX="/usr/bin/g++"
>export CXXFLAGS="-O"
>#
You should:
o change your CPPFLAGS environment variable to:
export CPPFLAGS="-DNDEBUG -Df2cFortran"
o run 'make distclean'
o rerun configure
o rerun make to build the package
Tom Yoksas
>From address@hidden Fri Mar 22 09:18:26 2002
>Subject: Re: 20020322: NetCDF on RedHat 7.2 system?
Tom
Thanks, it now worked just fine.
Unidata Support writes:
> You should:
>
> o change your CPPFLAGS environment variable to:
>
> export CPPFLAGS="-DNDEBUG -Df2cFortran"
>
> o run 'make distclean'
> o rerun configure
> o rerun make to build the package
>
> Tom Yoksas
----------------------------------------------------------------------------
Robert Flanigan
New Mexico Turtle Ranch
address@hidden