cygwin $'\ r':找不到命令错误 [英] cygwin $'\r': command not found error

查看:217
本文介绍了cygwin $'\ r':找不到命令错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我稍微修改了一个项目,在调试下工作正常.当我尝试在不调试的情况下构建它时,它显示错误,无法修复.

I revised a project a bit, under debugging it worked fine. When I try to build it without debugging, it is showing errors, could not fix it.

        $ make
        Making all in third_party
        make[1]: Entering directory '/cygdrive/c/Users/alimjan/Documents/fast-hlground/slim-2.2.7/third_party'
        Making all in zdelta-2.1
        make[2]: Entering directory '/cygdrive/c/Users/alimjan/Documents/fast-hlground/slim-2.2.7/third_party/zdelta-2.1'
        gcc -DHAVE_CONFIG_H -I. -I../../src     -Wall -export-dynamic -O3  -fopenmp -MT inffast.o -MD -MP -MF .deps/inffast.Tpo -c -o inffast.     o inffast.c
        mv -f .deps/inffast.Tpo .deps/inffast.Po
        gcc -DHAVE_CONFIG_H -I. -I../../src     -Wall -export-dynamic -O3  -fopenmp -MT inflate.o -MD -MP -MF .deps/inflate.Tpo -c -o inflate.     o inflate.c
       mv -f .deps/inflate.Tpo .deps/inflate.Po
       gcc -DHAVE_CONFIG_H -I. -I../../src     -Wall -export-dynamic -O3  -fopenmp -MT inftrees.o -MD -MP -MF .deps/inftrees.Tpo -c -o inftre     es.o inftrees.c
       mv -f .deps/inftrees.Tpo .deps/inftrees.Po
       gcc -DHAVE_CONFIG_H -I. -I../../src     -Wall -export-dynamic -O3  -fopenmp -MT infutil.o -MD -MP -MF .deps/infutil.Tpo -c -o infutil.     o infutil.c
       mv -f .deps/infutil.Tpo .deps/infutil.Po
       gcc -DHAVE_CONFIG_H -I. -I../../src     -Wall -export-dynamic -O3  -fopenmp -MT adler32.o -MD -MP -MF .deps/adler32.Tpo -c -o adler32.     o adler32.c
       mv -f .deps/adler32.Tpo .deps/adler32.Po
       gcc -DHAVE_CONFIG_H -I. -I../../src     -Wall -export-dynamic -O3  -fopenmp -MT zd_mem.o -MD -MP -MF .deps/zd_mem.Tpo -c -o zd_mem.o z     d_mem.c
       mv -f .deps/zd_mem.Tpo .deps/zd_mem.Po
       gcc -DHAVE_CONFIG_H -I. -I../../src     -Wall -export-dynamic -O3  -fopenmp -MT zutil.o -MD -MP -MF .deps/zutil.Tpo -c -o zutil.o zuti     l.c
       mv -f .deps/zutil.Tpo .deps/zutil.Po
       rm -f libzd_in_slim.a
       ar cru libzd_in_slim.a deflate.o infblock.o infcodes.o inffast.o 
       inflate.o inftrees.o infutil.o adler32.o trees.o zd_mem.o zdelta.o zu     til.o
       ranlib libzd_in_slim.a
       make[2]: Leaving directory '/cygdrive/c/Users/alimjan/Documents/fast-hlground/slim-2.2.7/third_party/zdelta-2.1'
       make[2]: Entering directory '/cygdrive/c/Users/alimjan/Documents/fast-hlground/slim-2.2.7/third_party'
      make[2]: Nothing to be done for 'all-am'.
      make[2]: Leaving directory '/cygdrive/c/Users/alimjan/Documents/fast-hlground/slim-2.2.7/third_party'
      make[1]: Leaving directory '/cygdrive/c/Users/alimjan/Documents/fast-hlground/slim-2.2.7/third_party'
      Making all in src
      make[1]: Entering directory '/cygdrive/c/Users/alimjan/Documents/fast-hlground/slim-2.2.7/src'
      /bin/sh ./genconfig
      ./genconfig: line 2: $'\r': command not found
      ./genconfig: line 8: $'\r': command not found
      ./genconfig: line 10: $'\r': command not found
      ./genconfig: line 13: $'\r': command not found
      ./genconfig: line 16: $'\r': command not found
      ./genconfig: line 19: $'\r': command not found
      ./genconfig: line 20: $'cat\r': command not found
      ./genconfig: line 21: $'cat\r': command not found
      ./genconfig: line 22: $'\r': command not found
      ./genconfig: line 61: $'\r': command not found
      ./genconfig: line 62: $'\r': command not found
      ./genconfig: line 86: $'\r': command not found
      ./genconfig: line 87: $'\r': command not found
      ./genconfig: line 88: $'\r': command not found
      make[1]: *** [Makefile:1558: arch.h] Error 127
       make[1]: Leaving directory '/cygdrive/c/Users/alimjan/Documents/fast-hlground/slim-2.2.7/src'
       make: *** [Makefile:425: all-recursive] Error 1

现在,我无法通过/不通过调试来构建它. 我怎样才能解决这个问题? 请帮助

Now, I could not build it with/without debugging. How can I fix this? Please help

推荐答案

genconfig是一个Shell脚本,它以DOS行尾结尾.运行脚本时,此行结尾使/bin/sh shell感到困惑.您应将dos2unix转换为unix行尾.

genconfig is a shell script and it is written with DOS line endings. This line ending confuses the /bin/sh shell when running the script. You should convert to unix line endings with dos2unix.

这篇关于cygwin $'\ r':找不到命令错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆