即使我sudo enmake,Emscripten“权限被拒绝”

时间:2013-02-16 06:58:25

标签: makefile llvm emscripten emmake

我正在玩emscripten而且我一直收到这个令人困惑的消息

|[413077]-$>../emmake Makefile
Error: Exception thrown when invoking Popen in make with args: "Makefile"!
Traceback (most recent call last):
  File "../emmake", line 24, in <module>
    shared.Building.make(sys.argv[1:])
  File "/Users/jkirchartz/Dropbox/emscripten/tools/shared.py", line 670, in make
    Popen(args, stdout=stdout, stderr=stderr, env=env).communicate()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

但即使我使用sudo,我也会遇到同样的错误:

|[254829]-$>sudo !!
sudo ../emmake Makefile
Password:
Error: Exception thrown when invoking Popen in make with args: "Makefile"!
Traceback (most recent call last):
  File "../emmake", line 24, in <module>
    shared.Building.make(sys.argv[1:])
  File "/Users/jkirchartz/Dropbox/emscripten/tools/shared.py", line 670, in make
    Popen(args, stdout=stdout, stderr=stderr, env=env).communicate()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

我在sudoer的名单上,我有root权限......但无论我做什么,我都会被拒绝。有什么想法吗?

2 个答案:

答案 0 :(得分:3)

emmake期望make可执行文件作为参数,而不是Makefile。试试../emmake make

答案 1 :(得分:1)

所有Building.make()都会调用make。检查您是否可以在命令行上手动运行make