Skip to content

Instantly share code, notes, and snippets.

@joonamo
Created April 22, 2022 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joonamo/ce903a0d496e2460e080347ff4fd719e to your computer and use it in GitHub Desktop.
Save joonamo/ce903a0d496e2460e080347ff4fd719e to your computer and use it in GitHub Desktop.
Sharp install tests
bash-5.1# sh test-install.sh
+ uname -a
Linux a6c2b0469ef6 5.10.76-linuxkit #1 SMP PREEMPT Mon Nov 8 11:22:26 UTC 2021 aarch64 Linux
+ ldd --version
musl libc (aarch64)
Version 1.2.2
Dynamic Program Loader
Usage: /lib/ld-musl-aarch64.so.1 [options] [--] pathname
+ node -v
v14.19.0
+ node -e 'console.log(`${process.platform}-${process.arch}`)'
linux-arm64
+ npm ls prebuild-install
sharp@0.30.4 /home/node/sharp
`-- prebuild-install@7.1.0
+ npm install
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /root/.npm/_libvips/libvips-8.12.2-linuxmusl-arm64v8.tar.br
sharp: Integrity check passed for linuxmusl-arm64v8
up to date, audited 1199 packages in 3s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-arm64v8.node
vendor/8.12.2:
linuxmusl-arm64v8
+ rm -rf build vendor
+ npm install '--platform=linux' '--arch=x64'
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /root/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1199 packages in 3s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ LIBC=glibc npm install '--platform=linux' '--arch=x64'
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /root/.npm/_libvips/libvips-8.12.2-linux-x64.tar.br
sharp: Integrity check passed for linux-x64
up to date, audited 1199 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linux-x64.node
vendor/8.12.2:
linux-x64
+ rm -rf build vendor
+ npm install '--platform=linux' '--arch=x64' '--libc=glibc'
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /root/.npm/_libvips/libvips-8.12.2-linux-x64.tar.br
sharp: Integrity check passed for linux-x64
up to date, audited 1199 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linux-x64.node
vendor/8.12.2:
linux-x64
+ rm -rf build vendor
+ npm install '--platform=linuxmusl' '--arch=x64'
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /root/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1199 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ LIBC=musl npm install '--platform=linux' '--arch=x64'
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /root/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1199 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ npm_config_libc=musl npm install '--platform=linux' '--arch=x64'
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /root/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1199 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ npm install '--platform=linux' '--arch=x64' '--libc=musl'
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /root/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1199 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ npm install '--platform=linuxmusl' '--arch=x64' '--libc=musl'
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /root/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1199 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ npm install '--platform=win32' '--arch=x64'
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-win32-x64.tar.br
sharp: Integrity check passed for win32-x64
sharp: Creating /home/node/sharp/build/Release
sharp: Copying DLLs from /home/node/sharp/vendor/8.12.2/win32-x64/lib to /home/node/sharp/build/Release
up to date, audited 1199 packages in 4s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
libglib-2.0-0.dll libgobject-2.0-0.dll libvips-42.dll libvips-cpp.dll sharp-win32-x64.node
vendor/8.12.2:
win32-x64
+ rm -rf build vendor
+ npm install '--platform=darwin' '--arch=arm64'
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-darwin-arm64v8.tar.br
sharp: Integrity check passed for darwin-arm64v8
up to date, audited 1199 packages in 5s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-darwin-arm64v8.node
vendor/8.12.2:
darwin-arm64v8
$ sh test-install.sh
+ uname -a
Darwin L1821.local 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64
+ ldd --version
test-install.sh: line 6: ldd: command not found
+ node -v
v14.19.0
+ node -e 'console.log(`${process.platform}-${process.arch}`)'
darwin-x64
+ npm ls prebuild-install
sharp@0.30.4 /Users/joonah/repos/os/sharp
└── prebuild-install@7.1.0
+ npm install
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /Users/joonah/.npm/_libvips/libvips-8.12.2-darwin-x64.tar.br
sharp: Integrity check passed for darwin-x64
up to date, audited 1200 packages in 5s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-darwin-x64.node
vendor/8.12.2:
darwin-x64
+ rm -rf build vendor
+ npm install --platform=linux --arch=x64
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /Users/joonah/.npm/_libvips/libvips-8.12.2-linux-x64.tar.br
sharp: Integrity check passed for linux-x64
up to date, audited 1200 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linux-x64.node
vendor/8.12.2:
linux-x64
+ rm -rf build vendor
+ LIBC=glibc
+ npm install --platform=linux --arch=x64
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /Users/joonah/.npm/_libvips/libvips-8.12.2-linux-x64.tar.br
sharp: Integrity check passed for linux-x64
up to date, audited 1200 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linux-x64.node
vendor/8.12.2:
linux-x64
+ rm -rf build vendor
+ npm install --platform=linux --arch=x64 --libc=glibc
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /Users/joonah/.npm/_libvips/libvips-8.12.2-linux-x64.tar.br
sharp: Integrity check passed for linux-x64
up to date, audited 1200 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linux-x64.node
vendor/8.12.2:
linux-x64
+ rm -rf build vendor
+ npm install --platform=linuxmusl --arch=x64
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /Users/joonah/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1200 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ LIBC=musl
+ npm install --platform=linux --arch=x64
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /Users/joonah/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1200 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ npm_config_libc=musl
+ npm install --platform=linux --arch=x64
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /Users/joonah/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1200 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ npm install --platform=linux --arch=x64 --libc=musl
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /Users/joonah/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1200 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ npm install --platform=linuxmusl --arch=x64 --libc=musl
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /Users/joonah/.npm/_libvips/libvips-8.12.2-linuxmusl-x64.tar.br
sharp: Integrity check passed for linuxmusl-x64
up to date, audited 1200 packages in 2s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-linuxmusl-x64.node
vendor/8.12.2:
linuxmusl-x64
+ rm -rf build vendor
+ npm install --platform=win32 --arch=x64
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-win32-x64.tar.br
sharp: Integrity check passed for win32-x64
sharp: Creating /Users/joonah/repos/os/sharp/build/Release
sharp: Copying DLLs from /Users/joonah/repos/os/sharp/vendor/8.12.2/win32-x64/lib to /Users/joonah/repos/os/sharp/build/Release
up to date, audited 1200 packages in 4s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
libglib-2.0-0.dll libgobject-2.0-0.dll libvips-42.dll libvips-cpp.dll sharp-win32-x64.node
vendor/8.12.2:
win32-x64
+ rm -rf build vendor
+ npm install --platform=darwin --arch=arm64
> sharp@0.30.4 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-darwin-arm64v8.tar.br
sharp: Integrity check passed for darwin-arm64v8
up to date, audited 1200 packages in 5s
167 packages are looking for funding
run `npm fund` for details
9 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
+ ls build/Release vendor/8.12.2
build/Release:
sharp-darwin-arm64v8.node
vendor/8.12.2:
darwin-arm64v8
#!/bin/bash
set -x
uname -a
ldd --version
node -v
node -e 'console.log(`${process.platform}-${process.arch}`)'
npm ls prebuild-install
npm install
ls build/Release vendor/8.12.2
rm -rf build vendor
npm install --platform=linux --arch=x64
ls build/Release vendor/8.12.2
rm -rf build vendor
LIBC=glibc npm install --platform=linux --arch=x64
ls build/Release vendor/8.12.2
rm -rf build vendor
npm install --platform=linux --arch=x64 --libc=glibc
ls build/Release vendor/8.12.2
rm -rf build vendor
npm install --platform=linuxmusl --arch=x64
ls build/Release vendor/8.12.2
rm -rf build vendor
LIBC=musl npm install --platform=linux --arch=x64
ls build/Release vendor/8.12.2
rm -rf build vendor
npm_config_libc=musl npm install --platform=linux --arch=x64
ls build/Release vendor/8.12.2
rm -rf build vendor
npm install --platform=linux --arch=x64 --libc=musl
ls build/Release vendor/8.12.2
rm -rf build vendor
npm install --platform=linuxmusl --arch=x64 --libc=musl
ls build/Release vendor/8.12.2
rm -rf build vendor
npm install --platform=win32 --arch=x64
ls build/Release vendor/8.12.2
rm -rf build vendor
npm install --platform=darwin --arch=arm64
ls build/Release vendor/8.12.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment