2013-02-16 63 views
2

我与emscripten玩弄,我不断收到此消息混乱Emscripten“权限被拒绝”,甚至当我须藤enmake

|[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权限......但无论我做什么,我都会获得权限被拒绝。有任何想法吗?

+0

对不起,您为什么要在这里申请?你能给更多的上下文吗? – abergmeier 2013-02-16 11:09:22

+0

它给了我同样的错误,当我试图做到没有sudo ...我已经更新了我的问题... – JKirchartz 2013-02-16 17:11:59

回答

1

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

+0

似乎工作,但给这个错误:'../emcc -c -O2 -W - 墙-Iliblzg/include -Izlib png.cpp emcc:警告:-Ox标志被忽略,因为没有生成JavaScript' ...我只是需要修改makefile文件... – JKirchartz 2013-02-20 20:04:08

3

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