英文:
Cant find gn or autoninja for chromium development
问题
我之前按照这里的教程在Mac上设置了Chromium开发,一切都正常。然后我重新启动了机器,但现在无法使用 gn
或 autoninja
,出现以下错误:
zsh: command not found: gn
zsh: command not found: autoninja
我已检查了我的路径并使用find_depot_tools.py脚本重新设置,显示已正确设置。我不确定应该如何修复这个问题,也不清楚为什么会发生这种情况。如果有人能解释一下,我将不胜感激。
也许最简单的方法是重新安装这些工具,但我不太确定如何做,因为据我了解它们都是Chrome特定的工具。
英文:
I have previously followed a tutorial on setting up chromium development for mac from here. I had this all working. I then restarted my machine but now I can't use gn
or autoninja
I get the following errors
zsh: command not found: gn
zsh: command not found: autoninja
I have checked my path and setup it up again using the find_depot_tools.py script and it shows as being correctly setup. I'm not totally sure what I can do to fix this or why it has even happened. If anyone could shed some light on this I would be very grateful.
Perhaps the easiest thing would be to reinstall these, but I'm not totally sure how to do this as they are both chrome specific tools as far as I can tell.
答案1
得分: 0
我通过在chromium/src目录中运行该命令并确保我的路径设置正确来修复了这个问题。
英文:
I fixed this by running the command in the command in chromium/src and ensuring my path was correctly set.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论