Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

BUG:/usr/bin/env: ‘/usr/bin/sh\r’: No such file or directory #28

@WRD1145

Description

@WRD1145

在Linux环境下
如果运行安装和启动脚本,会显示
/usr/bin/env: ‘/usr/bin/sh\r’: No such file or directory
经查询得知:这是由于脚本是用Windows风格换行符导致的错误
在Windows环境下,换行符为\r\n,在Linux环境下,换行符为\n
在使用脚本中,由于使用了Windows风格的换行符,导致Linux无法识别\r


并且在Linux环境下,执行脚本需要执行权限,所以应该在readme里添加文字:

如果您使用的是Linux系统,请在执行前在终端执行以下命令

chmod +x ./setup.sh
chmod +x ./start.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions