Skip to content

Support alpine prebuild #93

Description

@njfamirm

Hi
when I want to install @fastly/js-compute on Alpine Linux, it says wizer not found!

yarn build:app
> js-compute-runtime app/index.js
/app/node_modules/@bytecodealliance/wizer-linux-x64/wizer: not found
Error: Failed to compile JavaScript to Wasm:  Wizer initialization failure

this is the content of wizer node_module dir

ls -lrth node_modules/@bytecodealliance/wizer/

total 40K    
-rwxr-xr-x    1 root     root         853 Jun 25 15:47 wizer.js
-rw-r--r--    1 root     root        5.5K Jun 25 15:47 update.js
-rw-r--r--    1 root     root        1.1K Jun 25 15:47 package.json
-rw-r--r--    1 root     root         968 Jun 25 15:47 package-helpers.js
-rw-r--r--    1 root     root         727 Jun 25 15:47 index.js
-rw-r--r--    1 root     root         332 Jun 25 15:47 README.md
-rw-r--r--    1 root     root       12.0K Jun 25 15:47 LICENSE.md

based on @JakeChampion 's comment
this error occurred because Alpine uses musl libc, that's don't prebuilt by wizer.

Please add this!

If you guide me, I can participate myself

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions