problems from compiling the ROMS

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
vip545
Posts: 11
Joined: Tue Jun 18, 2013 1:10 pm
Location: Tsinghua university

problems from compiling the ROMS

#1 Unread post by vip545 »

when i compile the ROMS,there was an error as following:

cd /home/lenove/Projects/Upwelling/Build/modkinds.f90
0d /zi mod_kinds.f90 /object:mod_kinds.o
/bin/sh: -c:commmand not found
make:*** [/home/lenove/Projects/Upwelling/Build/mod_kinds.o]

who can help me deal with the above problem? thank you!
the build.bash file was also attached.
Attachments
build.bash
(16.82 KiB) Downloaded 297 times

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

Re: problems from compiling the ROMS

#2 Unread post by kate »

This one has made it into the FAQ. I hope it's clear enough.

vip545
Posts: 11
Joined: Tue Jun 18, 2013 1:10 pm
Location: Tsinghua university

Re: problems from compiling the ROMS

#3 Unread post by vip545 »

thank you very much. i don't know how to set FC to the null string and what is meant? where i shoud make this set? is it in the build.bash or somewhere?

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

Re: problems from compiling the ROMS

#4 Unread post by kate »

You have opted to use the ifort compiler and to not USE_MPI. Therefore, the FC string gets set to ifort in Compilers/Linux-ifort.mk (assuming you are on Linux). What happens when you type "which ifort" from the command line?

It is in Compilers/Linux-ifort.mk that you have:

Code: Select all

#
# Use full path of compiler.
#
               FC := $(shell which ${FC})
               LD := $(FC)
For me, this would set FC to the null string since I get:

Code: Select all

delta 881% which ifort
ifort: Command not found.
I instead have to pick FORT=pgi and I get:

Code: Select all

delta 882% which pgf90
/usr/local/pkg/pgi/pgi-13.4/linux86-64/13.4/bin/pgf90

Post Reply