Problems compiling ROMS NetCDF problem

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
staalstrom
Posts: 31
Joined: Mon Feb 04, 2008 3:43 pm
Location: NIVA, OSLO, NORWAY

Problems compiling ROMS NetCDF problem

#1 Unread post by staalstrom »

Hello
I try to compile ROMS on a Dell Laptop with Ubuntu Linux.
netcdf-3.6.2 is installed

When I try to compile I get the following error:

makefile:227: INCLUDING FILE Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
cd Build; /bin/g95 -c -fno-second-underscore -O3 -ffast-math -ffree-form -ffree-line-length-huge mod_netcdf.f90
Fatal Error: While reading module 'netcdf' found module version 0, expected 8.
make: *** [Build/mod_netcdf.o] Error 1

So what does netcdf module version 8 mean, and how can I make sure that I have this module version?

Best regards
Staalstrom

User avatar
robertson
Site Admin
Posts: 219
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: Problems compiling ROMS NetCDF problem

#2 Unread post by robertson »

Did you compile NetCDF yourself or install it as a package? In most cases it is easier and almot always necessary to compile NetCDF with the same compiler and options you wish to compile ROMS with. In short, unless you can find out exactly how your NetCDF was configured and compiled your first step should be to re-compile NetCDF yourself.

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

Re: Problems compiling ROMS NetCDF problem

#3 Unread post by kate »

It probably means your NetCDF was compiled with an older (incompatible) version of g95.

Post Reply