imagemin / jpegtran-bin

jpegtran bin-wrapper that makes it seamlessly available as a local dependency
http://libjpeg-turbo.virtualgl.org
MIT License
93 stars 47 forks source link

jpegtran Build Fails ... #69

Closed simspace-dr closed 8 years ago

simspace-dr commented 8 years ago

When I try to install gulp-imagemin (OS X 10.7.5), I get the following jpegtran-bin build error. Any ideas? Thanks, Chris

jpegtran-bin@3.0.6 postinstall /Users/simspace/Webdev/learn-gulp/node_modules/jpegtran-bin node lib/install.js ⚠ The /Users/simspace/Webdev/learn-gulp/node_modules/jpegtran-bin/vendor/jpegtran binary doesn't seem to work correctly ⚠ jpegtran pre-build test failed ℹ compiling from source ✖ Error: touch configure.ac aclocal.m4 configure Makefile.am Makefile.in && ./configure --disable-shared --prefix="/Users/simspace/Webdev/learn-gulp/node_modules/jpegtran-bin/vendor" --bindir="/Users/simspace/Webdev/learn-gulp/node_modules/jpegtran-bin/vendor" && make install Command failed: /bin/sh -c ./configure --disable-shared --prefix="/Users/simspace/Webdev/learn-gulp/node_modules/jpegtran-bin/vendor" --bindir="/Users/simspace/Webdev/learn-gulp/node_modules/jpegtran-bin/vendor" configure: error: installation or configuration problem: assembler cannot create object files.

at ChildProcess.exithandler (child_process.js:213:12) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:818:16) at Socket. (internal/child_process.js:319:11) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at Pipe._onclose (net.js:469:12)

shinnn commented 8 years ago

The last security update for OS X Lion was released at 16 Oct 2014, and the next update ignores Lion. It seems that Apple halted OS X Lion support over 1 year ago.

Please upgrade your OS to one of the supported versions. We'll never tackle ancient-OS-specific problems. If the problem still occurs even though you upgrade OS, feel free to comment more here.

rhewitt22 commented 8 years ago

I'm getting the same error on OSX 10.11.5:

  ⚠ unable to get local issuer certificate
  ⚠ jpegtran pre-build test failed
  ℹ compiling from source
  ✖ Error: touch configure.ac aclocal.m4 configure Makefile.am Makefile.in && ./configure --disable-shared --prefix="/Users/rhewitt/web/apps/mega-map/node_modules/imagemin-cli/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor" --bindir="/Users/rhewitt/web/apps/mega-map/node_modules/imagemin-cli/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor" && make install
Command failed: /bin/sh -c ./configure --disable-shared --prefix="/Users/rhewitt/web/apps/mega-map/node_modules/imagemin-cli/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor" --bindir="/Users/rhewitt/web/apps/mega-map/node_modules/imagemin-cli/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor"
configure: error: installation or configuration problem: assembler cannot create object files.

    at ChildProcess.exithandler (child_process.js:213:12)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:827:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:477:12)
shinnn commented 8 years ago

I'm getting the same error

No.

codyrushing commented 8 years ago

Also getting the same error:

  ⚠ Couldn't execute the `/Users/codyrushing/Projects/emilyrushing/node_modules/jpegtran-bin/vendor/jpegtran` binary. Make sure it has the right permissions.
  ⚠ jpegtran pre-build test failed
  ℹ compiling from source
  ✖ Error: touch configure.ac aclocal.m4 configure Makefile.am Makefile.in && ./configure --disable-shared --prefix="/Users/codyrushing/Projects/emilyrushing/node_modules/jpegtran-bin/vendor" --bindir="/Users/codyrushing/Projects/emilyrushing/node_modules/jpegtran-bin/vendor" && make install
Command failed: ./configure --disable-shared --prefix="/Users/codyrushing/Projects/emilyrushing/node_modules/jpegtran-bin/vendor" --bindir="/Users/codyrushing/Projects/emilyrushing/node_modules/jpegtran-bin/vendor"
configure: error: installation or configuration problem: assembler cannot create object files.

Mac OS X 10.10.5 Node 6.4.0 NPM 3.10.3 using NVM

codyrushing commented 8 years ago

I was able to fix this by uninstalling and reinstalling NVM...

shinnn commented 8 years ago

touch configure.ac aclocal.m4 configure Makefile.am Makefile.in

@codyrushing This part of code has been removed. https://github.com/imagemin/jpegtran-bin/commit/9e1d11287af10de8716ccc5a53c4ccd818927592 You're using older version of jpegtran-bin.