a problem in compiling ROMS with "make" command un

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
lucyzhao

a problem in compiling ROMS with "make" command un

#1 Post by lucyzhao » Mon Apr 16, 2007 4:55 pm

Hi, everyone,

I am trying to compile ROMS using make under Cygwin in a Windows XP computer, and I am unable to make it work.
I edited Makefile and provided the value for the FORT macro as FORT = g95. And similarly I defined the environmental variables NETCDF_INCDIR and NETCDF_LIBDIR in CYGWIN-g95.mk.

After I typed "make" , the following measseges were coming out,

$ make
/usr/bin/cpp -P -traditional -DCYGWIN -I/usr/include -DCYGWIN -DI686 -DG95 -IInclude -INonlinear -IDrivers Modeules/mod_kinds.F > mod_kinds.f90
Bin/cpp_clean mod_kinds.f90
make: Bin/cpp_clean: Command not found
make: *** [mod_kinds.f90] Error 127
rm mod_kinds.f90



I checked the directory /usr/bin/perl the file cpp.exe is there.


Any help would be highly appreciated. Thank you very much

Lucy

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

#2 Post by jcwarner » Mon Apr 16, 2007 5:15 pm

try
cd Bin
ls -ltr cpp*
and see if cpp_clean is an executable (does it have an x for the permissoins)?
If not, then type
chmod +x cpp_clean
cd ..
make clean
make

lucyzhao

#3 Post by lucyzhao » Mon Apr 16, 2007 9:22 pm

The file cpp_clean is an executable (It has an x for the permissions).

Thank you, jcwarner.


Lucy

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

#4 Post by kate » Mon Apr 16, 2007 10:51 pm

cpp_clean is a Perl script. It is likely that you don't have Perl installed on your system or on your path. The top line of cpp_clean contains:

Code: Select all

#!/usr/bin/env perl
Check to see if /usr/bin/env is there too.

lucyzhao

#5 Post by lucyzhao » Mon Apr 16, 2007 11:43 pm

Thanks, Kate. You are right. I don't have Perl installed on my system.

Lucy

Post Reply