imagemin / mozjpeg-bin

mozjpeg bin-wrapper that makes it seamlessly available as a local dependency

Home Page:https://github.com/mozilla/mozjpeg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

installation fails on OS X

thisconnect opened this issue · comments

commented

OS X 10.11.5
Xcode Version 7.3.1
Node v6.2.0

npm i mozjpeg-bin
npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.

> mozjpeg-bin@0.2.1 postinstall /Users/me/project/node_modules/mozjpeg-bin
> node postinstall.js

Building mozjpeg...
(node:2942) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
✗ Error: Command failed: autoreconf -fiv && ./configure --prefix="/Users/me/project/node_modules/mozjpeg-bin/bin" --bindir="/Users/me/project/node_modules/mozjpeg-bin/bin" --libdir="/Users/me/project/node_modules/mozjpeg-bin/bin" && make install
/bin/sh: autoreconf: command not found
commented

apparently this is fixed in the next release mozilla/mozjpeg#205

autoreconf: command not found sounds like you simply don't have autotools installed, and you're building source from master rather than the release tarball.

If you don't have build dependencies, then in the next major release you'll see cmake: command not found instead ;)

commented

@pornel yes I am a bit lazy and hope there will be binaries :)

commented

@thisconnect Libtool is required for the build to work. I used homebrew to get it.

brew install libtool

EDIT:
In your case perhaps you're missing autoconf actually.. brew install autoconf

commented

hi again. mozilla/mozjpeg#205 is merged!! -suitable-emoticon-here-

For imagemin-mozjpeg cosumers: should the installation process of brew install autoconf and brew install libtool be documented in the installation section of the imagemin-mozjpeg readme?

Also throwing out there that #26 can also be a pain point for osx installs.

Please try the newest version, it passed the tests for macOS.