Linux下执行脚本提示No such file or directory
来源:互联网 发布:阿里云备案幕布尺寸 编辑:程序博客网 时间:2024/05/19 07:10
1.现象描述:
在linux下使用./gradlew distTar
编译azkaban的时候提示如下错误:
: No such file or directory
2.原因分析:
在当前目录下明显有这个脚本,既然它提示不存在,肯定是因为linux环境没有读到该文件,因此考虑文件格式为dos
3.解决方法:
使用dos2unix命令将该脚本转换为unix格式,重新执行该脚本即可,如果没有dos2unix命令,切换到root用户采用yum安装即可,相关命令如下:
sudo yum install dos2unixdos2unix gradlew
0 0
- Linux下执行脚本提示No such file or directory
- Linux下执行脚本提示No such file or directory
- Linux执行脚本却提示No such file or directory
- linux执行python的脚本文件,提示提示No such file or directory
- Linux,执行.sh文件,提示No such file or directory
- Linux,执行.sh文件,提示No such file or directory
- Linux执行可执行文件提示No such file or directory
- linux执行脚本报错: No such file or directory
- Linux 执行Python脚本出现:No such file or directory
- Linux下执行.sh文件提示No such file or directory
- Linux下执行.sh文件提示No such file or directory
- Linux下执行.sh文件提示No such file or directory
- Linux下执行.sh文件提示No such file or directory
- Linux下执行可执行文件提示:No such file or directory的解决方法
- LINUX下执行脚本时,出现bad interpreter:No such file or directory的原因
- LINUX下执行脚本:/bin/sh^M: bad interpreter: No such file or directory 异常
- 执行shell脚本时提示bad interpreter:No such file or directory的解决办法
- 在执行shell脚本时,提示bad interpreter: No such file or directory
- win10+vs2015编译osg 3.4.0
- ReactiveCocoa 中 RACSignal 是如何发送信号的
- From表单提交刷新页面?
- log4j.xml
- [hive]动态分区和静态分区
- Linux下执行脚本提示No such file or directory
- Bootstrap-表格
- Internet通信1
- Internet通信3-Socket服务器
- 流总结
- Event Listener-2
- fragment向activity传递数据-1
- 自定义ScrollView,监听滑动回至顶…
- 截断edittext的焦点