error pgf90:not found - compiling roms in linux

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
LR11
Posts: 3
Joined: Thu Apr 17, 2008 2:00 pm
Location: UPC

error pgf90:not found - compiling roms in linux

#1 Unread post by LR11 »

I am trying to compile roms by typing make from the roms directory and i get the following message:

makefile:226: INCLUDING FILE Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
cd Build; pgf90 -c -O3 -tp k8-64 mod_kinds.f90
/bin/sh: pgf90: not found
make: *** [Build/mod_kinds.o] Error 127

i am running it on linux using gfortran as compiler

I would very much appreciate any help. thanks!

Laia

linzhenhua
Posts: 64
Joined: Mon Oct 17, 2005 2:02 am
Location: Institute of Oceanology,Chinese Academy of Sciences

Re: error pgf90:not found - compiling roms in linux

#2 Unread post by linzhenhua »

LR11 wrote:mod_kinds.f90
/bin/sh: pgf90: not found
make: *** [Build/mod_kinds.o] Error 127

i am running it on linux using gfortran as compiler

Laia
Hello,because the model try to use pgf90 as the fortran compiler which you do not have,instead of the gfortran compiler you want.

So,change the FORT variable from pgf90 to gfortran in makefile or build.bash,depending on which you use.

LR11
Posts: 3
Joined: Thu Apr 17, 2008 2:00 pm
Location: UPC

Re: error pgf90:not found - compiling roms in linux

#3 Unread post by LR11 »

HI, thanks for your response, i changed the makefile and i still get the following error:

In file included from Compilers/make_macros.h:16:
Compilers/../ROMS/Include/cppdefs.h:712:22: error: /home/laia/roms/trunk/upwelling.h: No such file or directory
makefile:226: INCLUDING FILE Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
makefile:449: warning: overriding commands for target `Build'
Master/Module.mk:22: warning: ignoring old commands for target `Build'
cd Build; mpif90 -c -frepack-arrays -O3 -ffast-math mod_kinds.f90
/bin/sh: mpif90: not found

I did not have any problems compiling roms in cygwin before, but i am doing something wrong in linux i can't spot. thanks a lot for helping

L

linzhenhua wrote:
LR11 wrote:mod_kinds.f90
/bin/sh: pgf90: not found
make: *** [Build/mod_kinds.o] Error 127

i am running it on linux using gfortran as compiler

Laia
Hello,because the model try to use pgf90 as the fortran compiler which you do not have,instead of the gfortran compiler you want.

So,change the FORT variable from pgf90 to gfortran in makefile or build.bash,depending on which you use.

LR11
Posts: 3
Joined: Thu Apr 17, 2008 2:00 pm
Location: UPC

Re: error pgf90:not found - compiling roms in linux

#4 Unread post by LR11 »

it finally worked! i followed the cygwin tutorial and compile it using build.bash - although i am running it on linux.

thanks a lot
L
LR11 wrote:HI, thanks for your response, i changed the makefile and i still get the following error:

In file included from Compilers/make_macros.h:16:
Compilers/../ROMS/Include/cppdefs.h:712:22: error: /home/laia/roms/trunk/upwelling.h: No such file or directory
makefile:226: INCLUDING FILE Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
makefile:449: warning: overriding commands for target `Build'
Master/Module.mk:22: warning: ignoring old commands for target `Build'
cd Build; mpif90 -c -frepack-arrays -O3 -ffast-math mod_kinds.f90
/bin/sh: mpif90: not found

I did not have any problems compiling roms in cygwin before, but i am doing something wrong in linux i can't spot. thanks a lot for helping

L

linzhenhua wrote:
LR11 wrote:mod_kinds.f90
/bin/sh: pgf90: not found
make: *** [Build/mod_kinds.o] Error 127

i am running it on linux using gfortran as compiler

Laia
Hello,because the model try to use pgf90 as the fortran compiler which you do not have,instead of the gfortran compiler you want.

So,change the FORT variable from pgf90 to gfortran in makefile or build.bash,depending on which you use.

Post Reply