node sharp install in docker on Aarch64 fails
See original GitHub issuePlatform is ODroid C2 - Amlogic S905 ARMv8 (AARCH64) I’m trying to install sharp for use with node.js v 8.x. While building docker when use package.json to setup the environment, it completes and includes sharp. But when I do a require(‘sharp’) I get the following error message:
Error: /usr/lib/aarch64-linux-gnu/libstdc++.so.6: version 'CXXABI_1.3.9' not found (required by /usr/src/app/node_modules/sharp/build/Release/../../vendor/lib/libvips-cpp.so.42) at Object.Module._extensions..node (module.js:681:18) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/usr/src/app/node_modules/sharp/lib/constructor.js:9:15) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32)
I tried to install sharp separately again - “RUN npm install sharp” (dockers way of doing it) and it fails and spits out the following error message:
` Step 6/11 : RUN npm install sharp —> Running in 9143ae79b1ab npm ERR! path /usr/src/app/node_modules/color-name npm ERR! code EINVAL npm ERR! errno -22 npm ERR! syscall rmdir npm ERR! EINVAL: invalid argument, rmdir ‘/usr/src/app/node_modules/color-name’
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-08-22T17_46_49_359Z-debug.log `
I find it odd that sharp wants to remove directory “/usr/src/app/node_modules/color-name” in the first place. Anyhow, I verified that this path it is trying to remove is valid, so I’m not sure why this is failing.
Please advice on how to troubleshoot this ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
https://jcupitt.github.io/libvips/install.html#building-libvips-from-a-source-tarball should help - good luck!
Thanks lovell. I’ll need to spend some time figuring out how to do that. I’ll report back in a couple of days.