Skip to content

Linux ARM64, align to 64k page size #45

@grantbeattie

Description

@grantbeattie

I'm seeing this when starting a node.js app using sharp 0.25.3 and the pre-built arm64 sharp/libvips on an Amazon c6g.large EC2 instance:

Error:
Something went wrong installing the "sharp" module

libglib-2.0.so.0: ELF load command alignment not page-aligned

- Remove the "node_modules/sharp" directory then run
  "npm install --ignore-scripts=false --verbose" and look for errors
- Consult the installation documentation at https://sharp.pixelplumbing.com/install
- Search for this error at https://github.com/lovell/sharp/issues

    at Object.<anonymous> (/app/node_modules/sharp/lib/constructor.js:34:9)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:873:16)
    at Function.wrappedLoad [as _load] (/app/node_modules/newrelic/lib/shimmer.js:481:24)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/app/node_modules/sharp/lib/index.js:3:15)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)

The app is running in Docker using Ubuntu 20.04 and node.js 12.18.

I haven't had a chance to dig into it any further yet, but when I do I'll update this issue.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions