lbguilherme / crystal-web

Crystal bindings to the Web APIs for building front-end applications with WebAssembly
MIT License
27 stars 2 forks source link

How to install `wasm-ld` (on Linux Mint or otherwise) #4

Closed drhuffman12 closed 1 year ago

drhuffman12 commented 1 year ago

I tried to build src/main.cr via:

$ lib/js/scripts/build.sh src/main.cr --release

... and was told I still need wasm-ld:

Please install wasm-ld

Where/how do I get wasm-ld installed? (I'm on Linux Mint.)

See: https://github.com/drhuffman12/crystal-web-example

drhuffman12 commented 1 year ago

It looks like I have lld-10 already installed, which apparently comes with wasmld, based on https://command-not-found.com/wasm-ld .

$ sudo apt-get install lld-10
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lld-10 is already the newest version (1:10.0.0-4ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.