Compile error

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
paban23
Posts: 3
Joined: Mon Mar 11, 2019 6:08 pm
Location: Indian Institute of Technology Bhubaneswar

Compile error

#1 Unread post by paban23 »

while compiling ./build_roms.bash, i got this error---
rm -f -r core *.ipo /Users/oceanlab/ROMS/Projects/Upwelling/Build_roms /Users/oceanlab/make_macros.mk
/bin/sh: --: invalid option
Usage: /bin/sh [GNU long option] [option] ...
/bin/sh [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
--wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
cp -f /opt/gfortransoft/serial/netcdf3/include/netcdf.mod /Users/oceanlab/ROMS/Projects/Upwelling/Build_roms
cp: /opt/gfortransoft/serial/netcdf3/include/netcdf.mod: No such file or directory
make: *** No rule to make target `/Users/oceanlab/ROMS/Projects/Upwelling/Build_roms/MakeDepend', needed by `all'. Stop.
Please Help,
Thank You.

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

Re: Compile error

#2 Unread post by kate »

cp: /opt/gfortransoft/serial/netcdf3/include/netcdf.mod: No such file or directory
make: *** No rule to make target
You need to have netcdf and netcdff installed and you need to know where they are. Best to get netcdf4 and set USE_NETCDF4 which has an nc-config to tell you where things are.

Post Reply