NetCDF compilation problems on Pentium III - Red Hat Linux

Frequently Asked Questions about ROMS usage

Moderators: arango, kate, robertson

Post Reply
Message
Author
prosperi

NetCDF compilation problems on Pentium III - Red Hat Linux

#1 Unread post by prosperi »

Hi All,

I am trying to make a local installation of ROMS on my computer (Pentium III, O.S = Red Hat 7.2 (Enigma)). I have some problems...

Actually, I started trying to create a grid NetCDF by using the coast and grid packages. I have a problem creating the NetCDF library. I followed the instructions in the UNIDATA INSTALL.html pages. Everything seems to go well until I lunch the "make" command giving:

Code: Select all

make[1]: Entering directory `/usr/local/netcdf-3.5.0/src'

Making `all' in directory /usr/local/netcdf-3.5.0/src/libsrc

make[2]: Entering directory `/usr/local/netcdf-3.5.0/src/libsrc'
cc -c -O -I.  -DNDEBUG attr.c
In file included from /usr/include/errno.h:36,
                 from netcdf.h:39,
                 from nc.h:16,
                 from attr.c:8:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
make[2]: *** [attr.o] Error 1
make[2]: Leaving directory `/usr/local/netcdf-3.5.0/src/libsrc'
make[1]: *** [subdir_target] Error 1
make[1]: Leaving directory `/usr/local/netcdf-3.5.0/src'
make: *** [libsrc/all] Error 2
So I cannot compile ROMS program because the NetCDF library hasn't been built.

Anyway, also with xpots and xcoast seems that there are some problems:

The Makefile.gcc assumes that my X files are under /usr/local/X11R6, actually they are in /usr/X11R6, so I created a simbolic link before to lunch the "make depend" and "make" command..the result is the same..

Concerning xpots, an interface is created, but is impossible "move" the switches..

Does cpp need to any option to compile correctly the .h files?

Thank you, Davide

User avatar
arango
Site Admin
Posts: 1367
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

#2 Unread post by arango »

There are better packages for creating and editing the grid NetCDF file for ROMS. These packages use Matlab and the MEXCDF interface. There are very easy to use and have a lot new capabilities. Get the SeaGrid package. See:

http://woodshole.er.usgs.gov/staffpages ... agrid.html

CPP does not required any special flags. The new ROMS (version 2.0 uses few include files since everything is handling with F90 modules.

Perhaps, you can find help on the NetCDF web site for your problem compiling the library. Seems to me that there are some problems in your configuration file.

Good luck, H
arango@imcs.rutgers.edu

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

#3 Unread post by m.hadfield »

I have a problem creating the NetCDF library. I followed the instructions in the UNIDATA INSTALL.html pages. Everything seems to go well until I lunch the "make" command giving:
You might have better luck with one of the netCDF RPMs at

http://www.rpmfind.net/linux/rpm2html/s ... ery=netcdf

Mark Hadfield
NIWA

Post Reply