Emscripten“权限被拒绝”,即使我 sudo enmake
Posted
技术标签:
【中文标题】Emscripten“权限被拒绝”,即使我 sudo enmake【英文标题】:Emscripten "Permission Denied" even when I sudo enmake 【发布时间】:2013-02-16 06:58:25 【问题描述】:我正在玩 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 访问权限......但无论我做什么,我都会被拒绝。有什么想法吗?
【问题讨论】:
对不起,你为什么要在这里sudo?你能提供更多背景信息吗? 当我尝试不使用 sudo 时,它给了我同样的错误......我已经更新了我的问题...... 【参考方案1】:emmake
期望 make
可执行文件作为参数,而不是 Makefile
。试试../emmake make
。
【讨论】:
【参考方案2】:所有 Building.make() 所做的就是调用 make
。检查您是否可以在命令行中手动运行make
。
【讨论】:
这似乎工作,但给出了这个错误:../emcc -c -O2 -W -Wall -Iliblzg/include -Izlib png.cpp emcc: warning: -Ox flags ignored, since not generating javascript
...我想我只需要稍微修改一下makefile ...以上是关于Emscripten“权限被拒绝”,即使我 sudo enmake的主要内容,如果未能解决你的问题,请参考以下文章