Comments (15)
I was able to get it working. This line will get it to build from source:
brew install libtool automake autoconf nasm
(from Kevva)
... and then additionally installing libpng will fix some future headaches ...
brew install libpng
(from AndyKenward)
I'm running MacOS Sierra 10.12.2 and was running into many of the same problems listed in similar threads. The mozjpeg pre-build test failed but I was able to build from source afterwards.
from image-webpack-loader.
Hi there
The solution you provided were not enough in my case, I first had to correct the brew installation itself. For posterity, and because this is one of the first issues that arises when googling, here are the steps that worked for me. I started from the brew FAQ "upgrading MacOS", http://docs.brew.sh/Common-Issues.html#upgrading-macos
- update XCode, run it, it will proceed to a few more installation
brew update
(updates brew itself)brew upgrade
(upgrades all the packages)npm uninstall image-webpack-loader
andnpm install image-webpack-loader
hope this helps :)
from image-webpack-loader.
Are you working with an older version of Ubuntu? Can you try sudo apt-get install autoconf autogen
from image-webpack-loader.
I'm on OSX 10.10. It looks like it is a imagemin/mozjpeg issue.
Would you evaluate the possibility to stick with [email protected] until a new version of mozjpeg comes out? That is the latest version correctly installing on OS X as versions 5.1.0 onwards use an incompatible version on mozjpeg 😞
from image-webpack-loader.
@pavelloz do you know what the impact is of this?
from image-webpack-loader.
I tried to reproduce this problem and i failed on both OSX 10.11 and 10.12, dont have access to 10.10
@albertogasparin
Have you tried installing automake
, autoconf
, libtool
?
From what I've read in here imagemin/mozjpeg-bin#16 it might be the case of simply missing dependencies necessary to compile the sources.
from image-webpack-loader.
Yes, by installing all of them I was able to compile mozjpeg on my machine. The point I was highlighting is that as those tools are not available by default (and the error message is not that helpful) this webpack plugin now looks broken on OS X.
So, I was questioning if the benefits of mozjpeg v4 over v3 are worth the additional pain for your OS X users.
For what I'm concerned, I can stick with image-webpack-loader v2 as it works fine across all our machines, but new users might go elsewhere because the installation fails or it has to be compiled on every npm install.
from image-webpack-loader.
Running OSX 10.11 and I ran into same issue.
Not sure if updating to image-webpack-loader v3.x
is a viable option for us right now since this can possibly lead to fairly cryptic build error.
@albertogasparin Did you eventually update?
from image-webpack-loader.
No, I had to lock the version to v3, as it's to much of a hassle for all developers in my team. I hope that mozjpeg will eventually release a new version soon. Otherwise will need to fork/find a replacement whenever this v3 will stop working 😞
from image-webpack-loader.
from image-webpack-loader.
I'm running into the same problem on mac 10.12.1. Not sure how to fix this.
from image-webpack-loader.
@albertogasparin Do you have a Package lock file that was generated from another OS? I faced this issue when a package-lock.json file was created in Windows system and then we tried to deploy the code in Jenkins(Linux) environment. Deleting the package-lock.json file solved the issue for me.
Hope this helps
from image-webpack-loader.
In Debian Buster, I had to install the package "dh-autoreconf", which provided the expected app autoreconf
from image-webpack-loader.
I have the same problem on CentOS 7. Any solutions to this?
from image-webpack-loader.
I have the same problem on Windows 11. Any solutions to this?
from image-webpack-loader.
Related Issues (20)
- Limit the number of image compressed concurrently HOT 1
- Incompatible GPL license on pngquant-bin HOT 3
- Cannot find module 'mozjpeg' HOT 4
- Update imagemin-svgo HOT 2
- Security vulnerability with trim-newlines HOT 1
- Security vulnerability with normalize-url HOT 2
- Security vulnerability with css-what and glob-parent HOT 1
- Consider switching to squoosh HOT 1
- Error running install script for optional dependency: "E:\\companycode\\lux-fi\\node_modules\\optipng-bin: Command failed. HOT 1
- posibility of a 7.0.2 release for image-webpack-loader with less strict imagemin-svgo version dependency HOT 2
- The configuration does not take effect, and the picture is not compressed HOT 1
- Need update trim-newlines version, semver-regex and node-forge
- I don't know why the installation always prompts 404
- [8.1.0] Compression of WebP files not working HOT 1
- ZLIB not found
- Unexpected character
- When I use this loader, if there are some Tinypng compressed image in the project, using this loader will make the image larger HOT 1
- Add peer dependency on Webpack to package.json
- I met a error that is I can't find any solution!Please help me!
- [PLEASE READ] From webpack team HOT 1
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 image-webpack-loader.