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!
ROMS installing in Vista (via Cygwin)
ROMS installing in Vista (via Cygwin)
- Attachments
-
- build.bash
- (15.43 KiB) Downloaded 203 times
- m.hadfield
- Posts: 521
- Joined: Tue Jul 01, 2003 4:12 am
- Location: NIWA
Re: ROMS installing in Vista (via Cygwin)
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.
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.
Re: ROMS installing in Vista (via Cygwin)
Thank you for response. I've made customizing the Build Script by using matlab. Now its compiling
Good Luck
Good Luck