Giter Club home page Giter Club logo

Comments (15)

mikedpad avatar mikedpad commented on August 16, 2024 12

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.

jpvincent avatar jpvincent commented on August 16, 2024 6

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 and npm install image-webpack-loader

hope this helps :)

from image-webpack-loader.

tcoopman avatar tcoopman commented on August 16, 2024

Are you working with an older version of Ubuntu? Can you try sudo apt-get install autoconf autogen

from image-webpack-loader.

albertogasparin avatar albertogasparin commented on August 16, 2024

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.

tcoopman avatar tcoopman commented on August 16, 2024

@pavelloz do you know what the impact is of this?

from image-webpack-loader.

pavelloz avatar pavelloz commented on August 16, 2024

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.

albertogasparin avatar albertogasparin commented on August 16, 2024

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.

scholtzm avatar scholtzm commented on August 16, 2024

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.

albertogasparin avatar albertogasparin commented on August 16, 2024

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.

tcoopman avatar tcoopman commented on August 16, 2024

from image-webpack-loader.

iiison avatar iiison commented on August 16, 2024

I'm running into the same problem on mac 10.12.1. Not sure how to fix this.

from image-webpack-loader.

debasishshanti avatar debasishshanti commented on August 16, 2024

@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.

esbeeb avatar esbeeb commented on August 16, 2024

In Debian Buster, I had to install the package "dh-autoreconf", which provided the expected app autoreconf

from image-webpack-loader.

garbinmarcelo avatar garbinmarcelo commented on August 16, 2024

I have the same problem on CentOS 7. Any solutions to this?

from image-webpack-loader.

yangdan8 avatar yangdan8 commented on August 16, 2024

I have the same problem on Windows 11. Any solutions to this?

from image-webpack-loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.