Skip to content

Instantly share code, notes, and snippets.

@taisyo7333
Last active October 21, 2017 01:44
Show Gist options
  • Save taisyo7333/78e3525a2107b1603f9e6207efc27b6a to your computer and use it in GitHub Desktop.
Save taisyo7333/78e3525a2107b1603f9e6207efc27b6a to your computer and use it in GitHub Desktop.
emacs libjpeg.8.dylib

problem

I had the following the error , I could not start emacs.

emacs                                                                                                  feature/refactoring
dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
  Referenced from: /usr/local/Cellar/emacs/25.2/Emacs.app/Contents/MacOS/Emacs
  Reason: image not found
[1]    80638 trace trap  /usr/local/Cellar/emacs/25.2/bin/emacs

and more

Where is my libjpeg.8.dylib? I think that my Mac has changed after I reinstall ffmpeg

ls -al /usr/local/opt/jpeg/lib/                                                                      ⏎ feature/refactoring
total 960
drwxr-xr-x  5 d-inoue  admin     170  1 17  2016 .
drwxr-xr-x  9 d-inoue  admin     306  9  8 17:43 ..
-r--r--r--  1 d-inoue  admin  207280  9  8 14:26 libjpeg.9.dylib
-r--r--r--  1 d-inoue  admin  276744  1 17  2016 libjpeg.a
lrwxr-xr-x  1 d-inoue  admin      15  1 17  2016 libjpeg.dylib -> libjpeg.9.dylib

solution

This is it!

wget -c http://www.ijg.org/files/jpegsrc.v8d.tar.gz
tar xzf jpegsrc.v8d.tar.gz
cd jpeg-8d
./configure
make
cp ./.libs/libjpeg.8.dylib /usr/local/opt/jpeg/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment