无法找到适用于Chromium开发的gn或autoninja。

huangapple go评论49阅读模式
英文:

Cant find gn or autoninja for chromium development

问题

我之前按照这里的教程在Mac上设置了Chromium开发,一切都正常。然后我重新启动了机器,但现在无法使用 gnautoninja,出现以下错误:

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.

huangapple
  • 本文由 发表于 2023年5月11日 00:39:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/76220793.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定