tcoopman / image-webpack-loader

Image loader module for webpack
MIT License
2.03k stars 132 forks source link

ZLIB not found #423

Open antonpug opened 2 years ago

antonpug commented 2 years ago

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: versionZLIB_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.