You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArchLinux error: "bash: ./run64.sh: cannot execute: required file not found".
Ubuntu 22.04 error: "-bash: ./run64.sh: /bin/sh^M: bad interpreter: No such file or directory"
This issues is caused by Windows line endings \r\n used in both shell files.
In Linux, an end of a line is indicated with \n while the \r character is a part of command line. This means the very first line (the shebang) tells the OS to execute the script with /bin/sh\r instead of /bin/sh. Since /bin/sh\r is not a valid executable, execution fails.
Both scripts need to have Linux line endings.
The text was updated successfully, but these errors were encountered:
Both shell files refuse to run on Linux.
ArchLinux error: "bash: ./run64.sh: cannot execute: required file not found".
Ubuntu 22.04 error: "-bash: ./run64.sh: /bin/sh^M: bad interpreter: No such file or directory"
This issues is caused by Windows line endings
\r\n
used in both shell files.In Linux, an end of a line is indicated with
\n
while the\r
character is a part of command line. This means the very first line (the shebang) tells the OS to execute the script with/bin/sh\r
instead of/bin/sh
. Since/bin/sh\r
is not a valid executable, execution fails.Both scripts need to have Linux line endings.
The text was updated successfully, but these errors were encountered: