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 Unread post by lucyzhao »

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: 1172
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

#2 Unread post by jcwarner »

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 Unread post by lucyzhao »

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

Thank you, jcwarner.


Lucy

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

#4 Unread post by kate »

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 Unread post by lucyzhao »

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

Lucy

Post Reply