Linux下执行脚本提示No such file or directory
来源:互联网 发布:西游之路法相进阶数据 编辑:程序博客网 时间:2024/05/21 02:49
1.现象描述:
在linux
下编译sifteo sdk
后,使用./sifteo-sdk-shell.sh
的时候提示如下错误:
: No such file or directory
2.原因分析:
我的源码是在window下git clone下来的,所以考虑文件格式错误,在当前目录下明显有这个脚本,既然它提示不存在,肯定是因为linux环境没有读到该文件,因此考虑文件格式为dos
3.解决方法:
使用dos2unix命令将该脚本转换为unix格式,重新执行该脚本即可,如果没有dos2unix
命令,切换到root用户采用apt-get
安装即可,相关命令如下:
sudo apt-get install dos2unixdos2unix sifteo-sdk-shell.sh
阅读全文
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
- APNS导致消息丢失和发送效率原因
- Git远程仓库地址变更本地如何修改
- Axon Framework官方文档(五)
- 项目开发中的人月及如何计算
- srping applicationContext.xml 配置
- Linux下执行脚本提示No such file or directory
- Unity2017组件Sprite Mask的使用(学习总结)
- php错误 Fatal error: Cannot use object of type stdClass as array in……
- Shader Forge火焰流动
- log4j详解与实战
- 破解 验证码
- Java并发控制机制详解
- 验证码
- word2vec 数学原理