我最近使用自制软件在Macbook air上安装了emscripten。但是,当我尝试运行它时,即使我执行了简单的emcc --version
,我也会收到错误llc executable not found at /usr/bin/llc
。我该如何解决?
解决方案:尚未安装llvm,所以在brew install llvm
后面加echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.zshrc
为我解决了此问题。
Hrm。似乎像添加brew install llvm
一样,我仍然无法拨打电话llvm
。
所以我刚刚安装了brew install 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
,给了我BINARYEN_ROOT is set to empty value in /usr/local/Cellar/emscripten/1.39.18/libexec/.emscripten
。
您如何设置您的BINARYEN_ROOT?我在最新的macos 10.15.5
上。