make command

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
fereshteh
Posts: 79
Joined: Sun Dec 30, 2012 2:58 pm
Location: inio:Iranian National Institute for Oceanography

make command

#1 Unread post by fereshteh »

Hi
i can run upwelling test succesfully and get some netcdf files as out put. Also i install NCL6.1.2 binary eithout OpeNDAP support . And i download PLOT directory too. i choice
gfortran as roms comliler Also i set netcdf libraries in build.bash file as bellow:
export NC_CONFIG=/home/fkomijani/NETCD4.2.1.1/bin/nc-config
export NETCDF_INCDIR=/home/fkomijani/NETCD4.2.1.1/include
therefore i just change FORT ?= gfortran in makefile and then run:
[fkomijani@localhost TRUNK]$ make
but i this error arise:
makefile:238: INCLUDING FILE /home/fkomijani/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
cp -f /usr/local/include/netcdf.mod Build
cp: cannot stat `/usr/local/include/netcdf.mod': No such file or directory
make: *** No rule to make target `Build/netcdf.mod', needed by `Build/MakeDepend'. Stop.

it seems that makefile is searching netcdf libraries in /usr/local path. But why? I set netcdf libraries in build.bash in specified way. Therefore i expect that makefile get those path from build.bash.
How can i fix this error.
thanks

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

Re: make command

#2 Unread post by kate »

Build.bash is for compiling ROMS, not the plotting code. The plotting code has not received as much care and is a bit more primitive. You need to set the netcdf location in the Compilers/OS-gfortran.mk within the plotting code directory.

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

Re: make command

#3 Unread post by arango »

The plotting package has its own build script: src/Bin/build_plt.bash and src/Bin/build_plt.sh in its repository. You can also customize this build script in the same way as ROMS build script.

fereshteh
Posts: 79
Joined: Sun Dec 30, 2012 2:58 pm
Location: inio:Iranian National Institute for Oceanography

Re: make command

#4 Unread post by fereshteh »

Dear
i found my mistake. But I do not think I would solve it without your guides. Thank you so much for your help.
cheers
fereshte

Post Reply