我想直接运行程序,例如./program无需先在 shell 中定义解释器。那么,我怎样才能防止这个错误呢?
错误的解释器:权限被拒绝
我的操作系统是 redhat - CentOS 5.6 版(最终版)
root@server [/tmp/mechanize-0.1.7b]# ./functional_tests.py
-bash: ./functional_tests.py: /usr/bin/env: bad interpreter: Permission denied
root@server [/tmp/mechanize-0.1.7b]#
root@server [/tmp/Python-2.7.1]# ./configure
-bash: ./configure: /bin/sh: bad interpreter: Permission denied
root@server [/tmp/Python-2.7.1]#
Run Code Online (Sandbox Code Playgroud)