Linux laptop install

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
drewa
Posts: 35
Joined: Mon Dec 17, 2007 5:34 pm
Location: SCCWRP, Costa Mesa, CA

Linux laptop install

#1 Unread post by drewa »

I'm trying to install on a Laptop running Windows, using VMWare and Ubuntu Linux. We have run into a problem and are a bit stuck. The error we get is:

jars@jars-desktop:~/trunk$ make
makefile:226: INCLUDING FILE Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
gfortran -frepack-arrays -O3 -ffast-math Build/master.o Build/ocean_control.o Build/ocean_coupler.o Build/propagator.o -o oceanS Build/libNLM.a Build/libANA.a Build/libICE.a Build/libUTIL.a Build/libMODS.a -L/usr/lib -lnetcdf
Build/libNLM.a(output.o): In function `output_':
output.f90:(.text+0x343): undefined reference to `__netcdf__nf90_close'
output.f90:(.text+0x477): undefined reference to `__netcdf__nf90_close'
output.f90:(.text+0x559): undefined reference to `__netcdf__nf90_close'
Build/libUTIL.a(close_io.o): In function `close_io_':
close_io.f90:(.text+0x65): undefined reference to `__netcdf__nf90_close'
close_io.f90:(.text+0x98): undefined reference to `__netcdf__nf90_close'

and on and on and on.....

The compile file was changed to point netCDF to where we think it should be.
NETCDF_INCDIR ?= /home/jars/netCDF/include
NETCDF_LIBDIR ?= /home/jars/netCDF/lib
We pulled down an install from the Unidata site as well as through synaptic and pointed to both places but have the same errors.

Any advice to what we're doing wrong? THANKS

shcher
Posts: 2
Joined: Tue Jun 12, 2007 12:37 am
Location: Applied Physics Lab., U. of Washington

#2 Unread post by shcher »

I have a very similar setup, although I am using Intel Fortran Compiler.
Not sure if I had the same errors, but compiling NetCDF library from scratch solved them (see here: http://www.unidata.ucar.edu/software/ne ... -Unix.html).

hope it helps.

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

#3 Unread post by jcwarner »

make sure you build / acquire netcdf with the fortran 90 interface.

drewa
Posts: 35
Joined: Mon Dec 17, 2007 5:34 pm
Location: SCCWRP, Costa Mesa, CA

#4 Unread post by drewa »

Thanks, I got it up and going.

Post Reply