installation fails on OS X
thisconnect opened this issue · comments
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
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 ;)
@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
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.