Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails in node:14-alpine Docker image #23

Open
alaz opened this issue Jul 5, 2020 · 2 comments
Open

Installation fails in node:14-alpine Docker image #23

alaz opened this issue Jul 5, 2020 · 2 comments

Comments

@alaz
Copy link

alaz commented Jul 5, 2020

How to reproduce:

$ docker run -t --rm --entrypoint yarn node:14-alpine global add jpeg-recompress-bin
yarn global v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments: 
Directory: /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin
Output:
⚠ spawn /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress ENOENT
  ⚠ jpeg-recompress pre-build test failed
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

Inside the container:

/usr/src/app # /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress 
/bin/sh: /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress: not found

/usr/src/app # file /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin/vendor/jpeg-recompre
ss 
/usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=6fe1a43ed9bf9ace7ff3b95d2e0c3d8ab98ef3d8, not stripped

/usr/src/app # ldd /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin/vendor/jpeg-recompres
s 
	/lib64/ld-linux-x86-64.so.2 (0x7f797940d000)
	libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f797940d000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f797940d000)
Error relocating /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress: __vfprintf_chk: symbol not found
Error relocating /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress: __printf_chk: symbol not found
Error relocating /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress: __fprintf_chk: symbol not found
Error relocating /usr/local/share/.config/yarn/global/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress: __sprintf_chk: symbol not found
@1000ch
Copy link
Contributor

1000ch commented Jul 6, 2020

Did you install the jpeg-archive dependencies?

@alaz
Copy link
Author

alaz commented Jul 6, 2020

@1000ch No, I did not. To be honest, it is cumbersome to track all transitive dependencies and learn what to install. Thank you for the lead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants