Automattic / Automattic/node-canvas
Error: libcairo.so.2: ELF load command address/offset not page-aligned
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
## Error
```javascript
Error: libcairo.so.2: ELF load command address/offset not page-aligned
at Object..node (node:internal/modules/cjs/loader:1846:18)
at Module.load (node:internal/modules/cjs/loader:1423:32)
at Function._load (node:internal/modules/cjs/loader:1246:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module. (node:internal/modules/cjs/loader:1445:12)
at Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39)
at require (node:internal/modules/helpers:135:16)
at Object. (/app/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1688:14) {
code: 'ERR_DLOPEN_FAILED'
}
```
## Environment
Host: Centos 7
arch: arm64
Image: Ubuntu 22.04/24.04
```bash
FROM ubuntu:22.04
RUN apt update && apt upgrade -y
RUN apt install -y vim curl build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
...
```
node: v22
node-canvas: v3.1.2
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.