在OSX 10.15上安装和运行脚本

问题描述 投票:1回答:2

我最近使用自制软件在Macbook air上安装了emscripten。但是,当我尝试运行它时,即使我执行了简单的emcc --version,我也会收到错误llc executable not found at /usr/bin/llc。我该如何解决?

macos webassembly emscripten
2个回答
1
投票

解决方案:尚未安装llvm,所以在brew install llvm后面加echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.zshrc为我解决了此问题。


0
投票

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上。

© www.soinside.com 2019 - 2024. All rights reserved.