./sysroot.sh:不允许操作

the*_*hay 4 macos bash operation

我试图安装cydia源代码.

$ git clone git://git.saurik.com/cydia.git
$ cd cydia
Run Code Online (Sandbox Code Playgroud)

但当我输入"./sysroot.sh"时,我收到此错误:

-bash: ./sysroot.sh: /usr/bin/env: bad interpreter: Operation not permitted
Run Code Online (Sandbox Code Playgroud)

有什么问题?

jor*_*anm 9

我的猜测是,您尝试运行脚本的文件系统是使用"noexec"选项挂载的.shebang中的解释器不需要在$ PATH中,因为指定了绝对路径.尝试通过调用解释器而不是脚本来运行脚本:

bash sysroot.sh
Run Code Online (Sandbox Code Playgroud)