意外标记附近的语法错误`$'in\r'' [英] syntax error near unexpected token `$'in\r''
问题描述
我试图编译NIST生物识别图像软件,我一直都有麻烦。我终于得到了源检出右,我安装cygwin没有问题(我已经使用它在过去),但当我去编译,我得到这个错误:
I'm trying to compile the NIST Biometric Image Software, and I have been having trouble all day. I finally got the source checked out right, and I installed cygwin with no problems (I have used it in the past), but when I went to compile, I get this error:
$ sh setup.sh </cygdrive/c/NBIS> [--without-X11]
setup.sh: line 94: syntax error near unexpected token `$'in\r''
'etup.sh: line 94: ` case $1 in
现在我确定任何高级编码器会前往setup.sh并寻找问题, m不是真的很多的编码器(我只是编译这,因为没有预编译包),所以我不知道该怎么办。我没有安装任何图书馆与cygwin,我只剩下一切默认。我试图遵循NBIS手册,但我不真的理解它,以及所以我很努力。 Maybye看看它,你可能会注意到我错过了什么: http://www.nist.gov/customcf /get_pdf.cfm?pub_id=51097
Now I'm sure any advanced coder would head to the setup.sh and look for problems, but I'm not really much of a coder (I'm only compiling this because there are no pre-compiled packages) so I don't know what to do. I didn't install any libraries with cygwin, I just left everything default. I'm trying to follow the NBIS manual, but I don't really understand it that well and so I'm struggling badly. Maybye taking a look at it you may notice something I missed: http://www.nist.gov/customcf/get_pdf.cfm?pub_id=51097
推荐答案
要转换 setup.sh
到Cygwin上的Unix行结尾,使用
To convert setup.sh
to Unix line endings on Cygwin, use
dos2unix setup.sh
这篇关于意外标记附近的语法错误`$'in\r''的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!