ROMS installing in Vista (via Cygwin)

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
smusya
Posts: 2
Joined: Thu Jul 16, 2009 5:17 pm
Location: University of Barcelona, Spain

ROMS installing in Vista (via Cygwin)

#1 Unread post by smusya »

Hello everyone, I'm new in ROMS!
Trying to install with tutorial (https://www.myroms.org/wiki/index.php/R ... all_Cygwin) and stopped in 'Compile ROMS' section. after ./build.bash i have:
-------------------
./build.bash: line 40:$'r'/: command not found
./build.bash: line 43:$'r'/: command not found
./build.bash: line 46:$'r'/: syntax error near unexpected token'$'in\r''
./build.bash: line 46:$'r'/: case "$1" in
-------------------
What did I miss? In attach build.bash file.
Thank you!
Attachments
build.bash
(15.43 KiB) Downloaded 203 times

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

Re: ROMS installing in Vista (via Cygwin)

#2 Unread post by m.hadfield »

You've got ascii CR ("\r") characters in your text files.

Background: by convention, text files on DOS & Windows use a CR LF (\r\n) combination to terminate lines and text files on Unix use LR (\n).

Cygwin is a Unix emulator and its applications are often confused by the CR. The solution is to get rid of them.

You can strip out the CRs with the dos2unix utility.

Better still, manage your ROMS source with the Cygwin Subversion client (svn) to avoid the problem in the first place.

And use a text editor that doesn't try to put the CRs back in. All good Windows editors can be configured appropriately: I prefer TextPad.

smusya
Posts: 2
Joined: Thu Jul 16, 2009 5:17 pm
Location: University of Barcelona, Spain

Re: ROMS installing in Vista (via Cygwin)

#3 Unread post by smusya »

Thank you for response. I've made customizing the Build Script by using matlab. Now its compiling :)
Good Luck

Post Reply