build.bash Problem

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
aliayamahdi
Posts: 5
Joined: Sun Oct 17, 2010 12:54 am
Location: The University of Arizona

build.bash Problem

#1 Unread post by aliayamahdi »

Hello,

I have problem with build.bash, when I'm following the tutorial "Installing ROMS in Windows XP/Vista (Via Cygwin)" and when tried to compile, I got this error:

$ ./build.bash
./build.bash: line 417: cd: /home/aliayamahdi/roms/trunk: No such file or directory
make: *** No rule to make target 'clean'. Stop
make:*** No targets specified and no makefile found. Stop

Note: I put ROMS file in the cygwin file within the C directory.

Please help me to overcome this problem.

Thank you very much

robertson
Site Admin
Posts: 224
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: build.bash Problem

#2 Unread post by robertson »

The build.bash script is telling you that the directory /home/aliayamahdi/roms/trunk does not exist. The script is trying to change in to the directory you set for MY_ROMS_SRC in your build.bash script. Double check that you have set this correctly and that it contains the ROMS source codes.

aliayamahdi
Posts: 5
Joined: Sun Oct 17, 2010 12:54 am
Location: The University of Arizona

Re: build.bash Problem

#3 Unread post by aliayamahdi »

Thank you very much, when I wrote this line (export MY_ROOT_DIR=c:/cygwin/roms) in the build.bash file, the compilation passed this command (this menas o.k) but other error appeared which is :

makefile:390: *** target pattern contains no '%'. Stop.
makefile:241: INCLUDING FILE /home/Abdullah/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
/roms/trunk/Compilers/CYGWIN-gfortran.mk:117: *** target pattern contains no '%'. Stop.


Please, what can I do now?
Thanks

robertson
Site Admin
Posts: 224
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: build.bash Problem

#4 Unread post by robertson »

I refer you to the following topic:

viewtopic.php?t=872

Please let us know if that solves your problem.

aliayamahdi
Posts: 5
Joined: Sun Oct 17, 2010 12:54 am
Location: The University of Arizona

Re: build.bash Problem

#5 Unread post by aliayamahdi »

Hello,

I passed the error that I faced by wrote this command "in the build.bash file" (export MY_ROOT_DIR=/cygdrive/c/cygwin/roms), then I wrote the command (dos2unix build.bash) in the cygwin window. Finally I run ROMS and I got the following output files:
ocean_avg.nc
ocean_dia.nc
ocean_his.nc
ocean_rst.nc


Thanks for Robertson, Kate and Glejin for their help.

Post Reply