【问题标题】:Emscripten "Permission Denied" even when I sudo enmakeEmscripten“权限被拒绝”,即使我 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 时,它给了我同样的错误......我已经更新了我的问题......

标签: makefile llvm emscripten emmake


【解决方案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 ...
    猜你喜欢
    • 2016-11-12
    • 2022-01-03
    • 1970-01-01
    • 2015-02-13
    • 2017-03-01
    • 1970-01-01
    • 2015-03-19
    • 2023-02-01
    • 2021-12-11
    相关资源
    最近更新 更多