tcoopman / image-webpack-loader

Image loader module for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZLIB not found

antonpug opened this issue · comments

When trying to run a project build with any version above 7, seeing this error:

Command: node lib/install.js error 01-Mar-2022 17:22:16 Arguments: error 01-Mar-2022 17:22:16 Directory: /home/bamboo/bamboo-agent-home/xml-data/build-dir/MY_APP/node_modules/mozjpeg error 01-Mar-2022 17:22:16 Output: error 01-Mar-2022 17:22:16 Command failed: /home/bamboo/bamboo-agent-home/xml-data/build-dir/MY_APP/node_modules/mozjpeg/vendor/cjpeg -version error 01-Mar-2022 17:22:16 /home/bamboo/bamboo-agent-home/xml-data/build-dir/MY_APP/node_modules/mozjpeg/vendor/cjpeg: /lib64/libz.so.1: version ZLIB_1.2.9' not found (required by /home/bamboo/bamboo-agent-home/xml-data/build-dir/MY_APP/node_modules/mozjpeg/vendor/cjpeg)
error 01-Mar-2022 17:22:16
error 01-Mar-2022 17:22:16
error 01-Mar-2022 17:22:16 mozjpeg pre-build test failed
error 01-Mar-2022 17:22:16 compiling from source
error 01-Mar-2022 17:22:16 Error: Command failed: /bin/sh -c ./configure --enable-static --disable-shared --disable-dependency-tracking --with-jpeg8 --prefix="/home/bamboo/bamboo-agent-home/xml-data/build-dir/MY_APP/node_modules/mozjpeg/vendor" --bindir="/home/bamboo/bamboo-agent-home/xml-data/build-dir/MY_APP/node_modules/mozjpeg/vendor" --libdir="/home/bamboo/bamboo-agent-home/xml-data/build-dir/MY_APP/node_modules/mozjpeg/vendor"`

After some triaging, I was able to find a workaround:
"resolutions": { "imagemin-mozjpeg": "8.0.0" },

Would be nice if this can be addressed in a new version so that the resolution can be removed.