Skip to content

Instantly share code, notes, and snippets.

@chriswessells
Created March 6, 2017 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriswessells/4310e53e7cf6d433ba9ca73e8c1be951 to your computer and use it in GitHub Desktop.
Save chriswessells/4310e53e7cf6d433ba9ca73e8c1be951 to your computer and use it in GitHub Desktop.
Script that will fix dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /opt/local/lib/libJPEG.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Trace/BPT trap: 5
#!/bin/bash
#
# script to fix errors after installing spidermonkey javascript engine on OS X and you get errors
#
cd /usr/local/lib
sudo rm libgif.dylib
sudo ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libGIF.dylib libGIF.dylib
sudo rm libjpeg.dylib
sudo ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libJPEG.dylib libJPEG.dylib
sudo rm libtiff.dylib
sudo ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libTIFF.dylib libTIFF.dylib
sudo rm libpng.dylib
sudo ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libPng.dylib libPng.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment