chenzhutian / hexo-all-minifier

A plugin for Hexo that optimizes HTML, CSS, JS and imagages, and it can optionally deploys your blog.
MIT License
279 stars 30 forks source link

imagemin-mozjpeg couldn't install successfully on mac osx 10.11 #13

Closed mamboer closed 8 years ago

mamboer commented 8 years ago

The imagemin-mozjpeg package might not be installed in mac osx.

In my laptop it throws the errors as below:

⚠ mozjpeg pre-build test failed
  ℹ compiling from source
  ✖ Error: autoreconf -fiv && ./configure --disable-shared --prefix="/Users/lv/dev/workspace/github/o2/o2team.github.io/node_modules/mozjpeg/vendor" --bindir="/Users/lv/dev/workspace/github/o2/o2team.github.io/node_modules/mozjpeg/vendor" --libdir="/Users/lv/dev/workspace/github/o2/o2team.github.io/node_modules/mozjpeg/vendor" && make --jobs=4 && make install --jobs=4
Command failed: autoreconf -fiv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal  --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory

After doing some google staff, i found the answer here:

https://github.com/imagemin/imagemin-mozjpeg/issues/1

In mac osx, we should install some extra packages, maybe you should add the instructions to the Readme file.

brew install libtool automake autoconf nasm
chenzhutian commented 8 years ago

thank you very much I would add this node ASAP

bluesliu commented 4 years ago

Thank you very much. I did it