Macos 在OSX 10.15上安装和运行emscripten

Macos 在OSX 10.15上安装和运行emscripten,macos,webassembly,emscripten,Macos,Webassembly,Emscripten,我最近使用自制软件在macbook air上安装了emscripten。 但是当我尝试运行它时,即使我执行了一个简单的emcc--version,我也会得到错误llc可执行文件,但在/usr/bin/llc中找不到它。如何解决此问题?解决方案:未安装llvm,因此brew安装llvm后接echo'export PATH=“/usr/local/opt/llvm/bin:$PATH”>~/.zshrc为我解决了此问题。

我最近使用自制软件在macbook air上安装了emscripten。
但是当我尝试运行它时,即使我执行了一个简单的
emcc--version
,我也会得到错误
llc可执行文件,但在/usr/bin/llc
中找不到它。如何解决此问题?

解决方案:未安装llvm,因此
brew安装llvm
后接
echo'export PATH=“/usr/local/opt/llvm/bin:$PATH”>~/.zshrc
为我解决了此问题。

brew安装llvm,我仍然无法调用
llvm

所以我刚刚安装了
brew安装emscripten
然后我做了
emcc
给我

Welcome to Emscripten!

This is the first time any of the Emscripten tools has been run.

A settings file has been copied to /usr/local/Cellar/emscripten/1.39.18/libexec/.emscripten, at absolute path: /usr/local/Cellar/emscripten/1.39.18/libexec/.emscripten

It contains our best guesses for the important paths, which are:

  LLVM_ROOT       = /usr/bin
  NODE_JS         = /usr/local/bin/node
  EMSCRIPTEN_ROOT = /usr/local/Cellar/emscripten/1.39.18/libexec

Please edit the file if any of those are incorrect.

This command will now exit. When you are done editing those paths, re-run it.
然后我再次执行了
emcc
,在/usr/local/ceral/emscripten/1.39.18/libexec/.emscripten中将
BINARYEN\u ROOT设置为空值


您是如何设置BINARYEN_根的?我使用的是最新的
macos 10.15.5

我将
export BINARYEN=“/usr/local/opt/BINARYEN/bin”
添加到我的
.zshrc
中,但是当我尝试运行
emcc
时,现在我得到了一组不同的错误,您可以在这里看到它们,如果可以,请提供帮助