Comments (10)
sudo apt-get install libpng16-dev
from imagemin-mozjpeg.
For any reason My ubuntu was missing some packages to compile, I had to add a new gpg key:
wget -qO - https://raw.githubusercontent.com/yarnpkg/releases/gh-pages/debian/pubkey.gpg | sudo apt-key add -
then
sudo apt-get install autoconf libtool pkg-config nasm build-essential
and now it compiles the module
from imagemin-mozjpeg.
It needs,
autoconf libtool pkg-config nasm
to compile but somehow it builds a shared binary requiring libpng16-dev as well to run.
mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory
A working binary should be provided though.
from imagemin-mozjpeg.
Can confirm ~6.0.0 works for me too, ~7.0.0 binary doesn't work and I am not able to install the various build tools etc. Thanks @JimmyMultani
from imagemin-mozjpeg.
Updating to [email protected]
allowed us to successfully build on our Ubuntu server. Will this be part of a version update soon?
from imagemin-mozjpeg.
I think it's fixed in 8.0.0. I've tested it today, it works for me. Build fails with 6.0.0 and 7.0.0 right now but works fine in 8.0.0
from imagemin-mozjpeg.
Oh, I guess this related to imagemin/mozjpeg-bin#33 - feel free to close if applicable.
from imagemin-mozjpeg.
The /.../source/node_modules/mozjpeg/vendor/cjpeg
binary doesn't seem to work correctly
⚠ mozjpeg pre-build test failed
ℹ compiling from source
✖ Error: autoreconf -fiv && ./configure --disable-shared --disable-dependency-tracking --with-jpeg8 --prefix="/.../source/node_modules/mozjpeg/vendor" --bindir="/.../source/node_modules/mozjpeg/vendor" --libdir="/.../source/node_modules/mozjpeg/vendor" && make -j1 && make install -j1
Command failed: autoreconf -fiv
/bin/sh: 1: autoreconf: not found
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
from imagemin-mozjpeg.
Is the dependency upon libpng16-dev
intentional or incidental?
On our build servers we cannot install libpng16-dev
because libpng12-dev
is already present. This is currently holding us back from upgrading packages that rely on imagemin-mozjpeg.
Does anyone have a suggestion on how to solve this? I might, for example, be able to compile libpng16-dev
from source, but how can I instruct imagemin-mozjpeg
to use that compiled version?
Any help would be greatly appreciated!
from imagemin-mozjpeg.
I'm also having same issue and can be fixed just by apt install nasm
since autoconf libtool pkg-config nasm build-essential
are already installed on my Ubuntu 16.04 (WSL).
> [email protected] postinstall /path/to/project/node_modules/mozjpeg
> node lib/install.js
⚠ The `/path/to/project/node_modules/mozjpeg/vendor/cjpeg` binary doesn't seem to work correctly
⚠ mozjpeg pre-build test failed
ℹ compiling from source
✔ mozjpeg built successfully
from imagemin-mozjpeg.
Related Issues (20)
- not working with node 15? HOT 1
- Issue in ubuntu systems having Ubuntu version greater than 16.04
- Issue in ubuntu versions 16.04 and above. HOT 1
- Getting an error on Win 10 HOT 2
- TypeError: options.sample.join is not a function HOT 1
- "Unknown system error -86" when building on Apple Silicon HOT 2
- Exif formatted jpeg errors HOT 1
- Dependency update needed to address trim-newlines CVE-2021-33623
- Dependency update needed to address nomalize-url CVE-2021-33502 HOT 1
- mozjpeg is not a function? HOT 1
- [with gulp and yarn] Need Help (((‵□′)) Must use import to load ES Module
- "spawn Unknown system error -8" when using Docker HOT 1
- Why is this error occurring (require() of ES modules is not supported.) HOT 2
- Error when installing mozjpeg - mozjpeg/vendor/cjpeg ENOENT HOT 7
- Build error after updates [email protected] HOT 5
- Cannot install imagemin-mozjpeg HOT 2
- Cant install plugin
- v6.0.0 build error occured
- [email protected] postinstall fails HOT 2
- http-cache-semantics vulnerable to Regular Expression Denial of Service [Severity High]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagemin-mozjpeg.