./configure : /bin/sh^M : bad interpreter

 

用命令行来编译Qt的时候发生标题尚的错误。

原因是文件中带有DOS行结束符,必须把它转换成UNix结束符

references:

http://stackoverflow.com/questions/2920416/configure-bin-shm-bad-interpreter

http://blog.chinaunix.net/uid-7390305-id-2057179.html

http://blog.csdn.net/duanbeibei/article/details/6957094

posted @ 2014-09-23 16:11  foo__hack  阅读(712)  评论(0编辑  收藏  举报