Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on initialization: Library not loaded: /usr/local/lib/libjpeg.8.dylib

See original GitHub issue

gulp-image is responding with the error below. Any ideas what I’ve done wrong? Thanks!

In Gulpfile.js

gulp.task('imageoptim', function() { gulp.src(source + 'images/*.{jpg,JPG}') .pipe(image()) .pipe(gulp.dest(dest + 'images')); });

Error in terminal

(node:5308) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error in plugin ‘gulp-image’ Message: write EPIPE Details: code: EPIPE errno: EPIPE syscall: write killed: false stdout: stderr: dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib Referenced from: /Users/marc/localhost/ar_live/node_modules/jpegoptim-bin/vendor/jpegoptim Reason: image not found

failed: true
signal: null
cmd: /Users/marc/localhost/ar_live/node_modules/jpegoptim-bin/vendor/jpegoptim --strip-all --strip-iptc --strip-icc --stdin --stdout
timedOut: false

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

alexdranscommented, Jul 23, 2017

I had to run brew reinstall jpegoptim libpng mozjpeg to fix this

1000chcommented, Jul 16, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Library not loaded: /usr/local/lib/libjpeg.8.dylib - homebrew php
This worked for me. I looked in my directory using ls /usr/local/Cellar/jpeg/ and saw two subdirectories 8d and 9c Since my error was...
Read more >
xcode14:Library not loaded: /usr/l… | Apple Developer Forums
4.1 is running properly, but after upgrading Xcode14, the debugging device reports an error: Library not loaded: / usr/lib/swift/libswiftCoreGraphics dylib, I ...
Read more >
Problem installing snappy on mac m1 - python - STEP Forum
1 set to be used by SNAP. Native library load failed. java.lang.UnsatisfiedLinkError: /Users/hm/.snap/auxdata/gdal/gdal-3-2-1/lib/jni/ ...
Read more >
How to run pyhdf with Anaconda Python3 - HDF-EOS Forums
In Anaconda Python3, it is possible that the JPEG library compiled with HDF4 and pyhdf ... 2): Library not loaded: @rpath/libjpeg.9.dylib
Read more >
5725 (Segmentation fault: 11 when initializing sqlite database ...
Segmentation fault: 11 when initializing sqlite database (with sqlite 3.8.7) ... (0) <ED8F5F52-AADA-37F6-B58D-5D001D6B0580> /usr/local/lib/libjpeg.8.dylib ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found