Ubuntu 下执行sh脚本 报错 :-bash: ./build_xx.sh: /bin/sh^M: bad interpreter: No such file or directory
执行sh脚本报这个错,很是郁闷,但是目录下的确有这个文件。
网上搜索找到答案--https://superuser.com/questions/344533/no-such-file-or-directory-error-in-bash-but-the-file-exists
原因:我的机器是64位的,需要32位的支持库。在Ubuntu 13.10及以后版本中依赖了 libncurses5:i386, libstdc+6:i386,and zlib1g:i386的包。
|
|

在Ubuntu系统中遇到执行sh脚本时提示'/bin/sh^M: bad interpreter: No such file or directory'的错误。问题根源在于缺少32位支持库。解决方案是在Ubuntu 13.10及以上版本中安装libncurses5:i386, libstdc++6:i386, 和zlib1g:i386这些32位依赖包。"
4540611,519377,Apache Commons Primitives:Int 类型操作详解,"['collections', 'integer', 'adapter', 'jdk', 'list']
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



