script OSError: [Errno 8] Exec format error

OSError: [Errno 8] Exec format error can happen if there is no shebang line at the top of the shell script and you are trying to execute the script directly. Here's an example that reproduces the issue:

在脚本前加上:

#!/bin/sh


选择编译器

你可能感兴趣的:(script OSError: [Errno 8] Exec format error)