Netcdf installation

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
gmaze

Netcdf installation

#1 Unread post by gmaze »

I have been trying to get netcdf installed for a few days. I have gone through and read all of the posts but I cannot find an answer to my problem. I am self taught so I am sure that is most of the problem.

I am trying to download netcdf-3.6.3 following the instructions on the ROMS wiki site.

export FC=gfortran
export FFLAGS='O3'

work fine however when I run

./configure

or

./configure --prefix=/opt/gfortran/serial/netcdf3

I get the following error

checking for C-equivalent to Fortran routine "SUB"... configure: error: Could not compile conftest.f


Can anyone tell me what I am doing wrong?

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Netcdf installation

#2 Unread post by kate »

Try FFLAGS = "-O3" instead.

There should be config.log or some such with all the details of how the test failed.

gmaze

Re: Netcdf installation

#3 Unread post by gmaze »

Thanks Kate,
that fixed it.

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

Re: Netcdf installation

#4 Unread post by m.hadfield »

What were you doing wrong? It's always nice to know about new ways to break netCDF installation.

gmaze

Re: Netcdf installation

#5 Unread post by gmaze »

I was typing
FFLAGS='O3'
instead of
FFLAGS='-O3'

Post Reply