得到错误/usr/bin/env: sh: 运行命令播放时没有这样的文件或目录 [英] getting error /usr/bin/env: sh: No such file or directory when running command play

查看:59
本文介绍了得到错误/usr/bin/env: sh: 运行命令播放时没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Play 框架的初学者.我只是提取播放框架文件并提取它们并在 $PATH 全局变量中给出播放目录的路径.在此之后,当我在 ubuntu play help 上运行命令时,它给了我以下错误:

I am a beginner on Play framework . I just extract Play framework files and extracted them and gave the path of play directory in $PATH global variable. After this when I run the the command on ubuntu play help, its giving me below error:

/usr/bin/env: sh: No such file or directory

知道为什么我会遇到这个错误以及如何解决它吗?

Any clue why I am facing this error and how to resolve it ?

推荐答案

如果脚本使用 windows 行结尾而不是 unix 行结尾,通常会发生此错误.

This error usually happens if the script has windows line endings instead of unix line endings.

尝试在脚本上运行 dos2unix 并再次尝试运行您的命令以查看是否出现相同的错误.

Try running dos2unix on the script and try running your command again to see if you get the same error.

dos2unix [filename]

这篇关于得到错误/usr/bin/env: sh: 运行命令播放时没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆