Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wasm-ld not found after performing brew install wabt

Tags:

webassembly

I am trying to use emscripten for which i need the webassembly toolkit something like binaryen however I chose to use wabt. I installed it using brew install wabt from which i get commands like wasm-objdump but wasm-ld is just nowehere to be found. And yes I have installed llvm.

like image 362
Bipul Adh Avatar asked Jan 21 '26 06:01

Bipul Adh


2 Answers

wasm-ld is installed as part of the lld linker packages (e.g. lld-10 on ubuntu). Check to see if you have that package installed. If not, install that, and the wasm-ld binary may appear in /usr/bin.

If you have that installed, there are two possibilities: 1.) The directory containing the binary is not part of your path: check /usr/lib/llvm-10/bin to see if the binary is in there (if llvm-10 is the version you have installed). 2.) The binary is in /usr/bin, but has the version number attached to its name (e.g. wasm-ld-10).

In either case, a temporary solution is to create a symbolic link to the binary in /usr/bin using "ln wasm-ld"

like image 143
David H Avatar answered Jan 23 '26 21:01

David H


wasm-ld is part of the llvm project. It is installed with llvm 8.0 and above by default.

like image 43
sbc100 Avatar answered Jan 23 '26 19:01

sbc100



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!