./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

原文地址:https://www.cnblogs.com/foohack/p/3988638.html